<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Outlier method in CAS. The calculation of percentiles did not converge in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Outlier-method-in-CAS-The-calculation-of-percentiles-did-not/m-p/814465#M9187</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Thanks for the info! I will forward the ticket to our percentile action support.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 20 May 2022 15:45:17 GMT</pubDate>
    <dc:creator>taiphe</dc:creator>
    <dc:date>2022-05-20T15:45:17Z</dc:date>
    <item>
      <title>Outlier method in CAS. The calculation of percentiles did not converge</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Outlier-method-in-CAS-The-calculation-of-percentiles-did-not/m-p/814010#M9177</link>
      <description>&lt;P&gt;Hi I'm using the&amp;nbsp;&lt;SPAN&gt;dataPreprocess.outlier action set in CAS. Using the IQR method i get an error message "ERROR: The calculation of percentiles did not converge. You might want to adjust the tolerance or the maximum number of iterations."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've tried several settings of the tolerance and maxiterations without any success. Since I've never seen this before I can't really create a simple sharable data set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The data I'm running with is residuals from a simpel exponential smooth done with proc TSmodel.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changing to method zscore does run the process smoothly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody have an idea of why and hat can be done to fix.&lt;/P&gt;&lt;P&gt;Thanks Pål N&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 08:57:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Outlier-method-in-CAS-The-calculation-of-percentiles-did-not/m-p/814010#M9177</guid>
      <dc:creator>PaalNavestad</dc:creator>
      <dc:date>2022-05-18T08:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Outlier method in CAS. The calculation of percentiles did not converge</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Outlier-method-in-CAS-The-calculation-of-percentiles-did-not/m-p/814071#M9178</link>
      <description>&lt;P&gt;Show your CAS action code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been running into many of these errors with CAS actions (nevertheless I love them) and the log often does not point you in the right direction. It's not self-explanatory&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 14:26:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Outlier-method-in-CAS-The-calculation-of-percentiles-did-not/m-p/814071#M9178</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2022-05-18T14:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Outlier method in CAS. The calculation of percentiles did not converge</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Outlier-method-in-CAS-The-calculation-of-percentiles-did-not/m-p/814220#M9181</link>
      <description>&lt;P&gt;Thanks here is the code. Yes I agree the actionset is overall good. Just something about the data. I'm checking for outliers on data coming from a simple exponential forecast from TSModel. There is 469 different by groups all with approx. 880 observations. We run similar workflows on other data and have had no challenges.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc cas;
	session casauto;
		dataPreprocess.outlier /                          
	      table={name="forecast"
	 			caslib="casuser"
				groupby={"unique_id"}
				}
		inputs={"Error"}
		method= "IQR"
		treatment = "trim"
		outVarsNamePrefix=""
	    outVarsNameSuffix="excl_Outl"
		countOutliers="True"
	    arguments={ scaleMultiplier=1.5 } 
		copyVars = {"unique_id" , "ACTUAL", "PREDICT", "ERROR", "prdate"}
		casout = {caslib="casuser" name="new_withoutl" replace= true}
		casOutOutlierInformation={caslib="casuser" name="OutlierStat" replace=True}
		;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The log writes as this&lt;/P&gt;&lt;DIV class=""&gt;84 proc cas;&lt;/DIV&gt;&lt;DIV class=""&gt;85 session casauto;&lt;/DIV&gt;&lt;DIV class=""&gt;86 dataPreprocess.outlier /&lt;/DIV&gt;&lt;DIV class=""&gt;87 table={name="forecast"&lt;/DIV&gt;&lt;DIV class=""&gt;88 caslib="casuser"&lt;/DIV&gt;&lt;DIV class=""&gt;89 groupby={"unique_id"}&lt;/DIV&gt;&lt;DIV class=""&gt;90 }&lt;/DIV&gt;&lt;DIV class=""&gt;91 inputs={"Error"}&lt;/DIV&gt;&lt;DIV class=""&gt;92 method= "IQR"&lt;/DIV&gt;&lt;DIV class=""&gt;93 treatment = "trim"&lt;/DIV&gt;&lt;DIV class=""&gt;94 outVarsNamePrefix=""&lt;/DIV&gt;&lt;DIV class=""&gt;95 outVarsNameSuffix="excl_Outl"&lt;/DIV&gt;&lt;DIV class=""&gt;96 countOutliers="True"&lt;/DIV&gt;&lt;DIV class=""&gt;97 arguments={ scaleMultiplier=1.5 }&lt;/DIV&gt;&lt;DIV class=""&gt;98 copyVars = {"unique_id" , "ACTUAL", "PREDICT", "ERROR", "prdate"}&lt;/DIV&gt;&lt;DIV class=""&gt;99 casout = {caslib="casuser" name="new_withoutl" replace= true}&lt;/DIV&gt;&lt;DIV class=""&gt;100 casOutOutlierInformation={caslib="casuser" name="OutlierStat" replace=True}&lt;/DIV&gt;&lt;DIV class=""&gt;101 ;&lt;/DIV&gt;&lt;DIV class=""&gt;102 run;&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: Active Session now casauto.&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: The calculation of percentiles did not converge. You might want to adjust the tolerance or the maximum number of iterations.&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: The calculation of percentiles did not converge. You might want to adjust the tolerance or the maximum number of iterations.&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: The calculation of percentiles did not converge. You might want to adjust the tolerance or the maximum number of iterations.&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: The calculation of percentiles did not converge. You might want to adjust the tolerance or the maximum number of iterations.&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: The action stopped due to errors.&lt;/DIV&gt;&lt;DIV class=""&gt;103&lt;/DIV&gt;&lt;PRE class=""&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;Just switching to zscore as the outlier method everything works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 06:48:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Outlier-method-in-CAS-The-calculation-of-percentiles-did-not/m-p/814220#M9181</guid>
      <dc:creator>PaalNavestad</dc:creator>
      <dc:date>2022-05-19T06:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Outlier method in CAS. The calculation of percentiles did not converge</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Outlier-method-in-CAS-The-calculation-of-percentiles-did-not/m-p/814232#M9182</link>
      <description>&lt;P&gt;I've applied your code to my data making only the necessary changes to get it run.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I cannot reproduce the error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried with a variable which is normally distributed within each group.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I've tried with a variable having a constant value over all observations.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It works for me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried with a different variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71623i4AC24109B4F41B7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic.png" alt="pic.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic1.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71624i1BFD80F9A71806D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic1.png" alt="pic1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 08:12:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Outlier-method-in-CAS-The-calculation-of-percentiles-did-not/m-p/814232#M9182</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2022-05-19T08:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Outlier method in CAS. The calculation of percentiles did not converge</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Outlier-method-in-CAS-The-calculation-of-percentiles-did-not/m-p/814240#M9183</link>
      <description>&lt;P&gt;Yes, and from the data I have a challenge with I've run a smaller subset of data and it runs. In the data there are 4 groups that has missing residuals removeing these did not help, and one of them runs. I also have approx. 50 groups that are constant, again removing does not work and running one or two of these does run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Strange also that zscore runs which I think is a more complex method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the moment I'm not that concerned about the method I'm running, I needed the structure to go further.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I will report as a bug in the track system, unless omebody from SAS picks tis up with asuggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your interest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 08:52:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Outlier-method-in-CAS-The-calculation-of-percentiles-did-not/m-p/814240#M9183</guid>
      <dc:creator>PaalNavestad</dc:creator>
      <dc:date>2022-05-19T08:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Outlier method in CAS. The calculation of percentiles did not converge</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Outlier-method-in-CAS-The-calculation-of-percentiles-did-not/m-p/814315#M9184</link>
      <description>&lt;P&gt;The error message is from Percentile action. It happens when the parameter percentileTolerance is too small or the percentileMaxIterations is low. You can try adjust the parameter values to obtain the percentile result. Try this:&lt;/P&gt;
&lt;P&gt;percentileTolerance=0.1&lt;/P&gt;
&lt;P&gt;percentileMaxIterations=20&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 15:43:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Outlier-method-in-CAS-The-calculation-of-percentiles-did-not/m-p/814315#M9184</guid>
      <dc:creator>taiphe</dc:creator>
      <dc:date>2022-05-19T15:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Outlier method in CAS. The calculation of percentiles did not converge</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Outlier-method-in-CAS-The-calculation-of-percentiles-did-not/m-p/814398#M9185</link>
      <description>&lt;P&gt;Thanks taiphe, still do not work. I do not have time to test this using the percentiles method directly. I discussed with local support and create a track so I can attach data and so that SAS can try and see why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to me that it might have something to do with the number of groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this error is not stopping progress for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pål N&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 06:20:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Outlier-method-in-CAS-The-calculation-of-percentiles-did-not/m-p/814398#M9185</guid>
      <dc:creator>PaalNavestad</dc:creator>
      <dc:date>2022-05-20T06:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Outlier method in CAS. The calculation of percentiles did not converge</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Outlier-method-in-CAS-The-calculation-of-percentiles-did-not/m-p/814445#M9186</link>
      <description>&lt;P&gt;Problem reported as a track. Track number:&amp;nbsp;7613580754&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 14:16:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Outlier-method-in-CAS-The-calculation-of-percentiles-did-not/m-p/814445#M9186</guid>
      <dc:creator>PaalNavestad</dc:creator>
      <dc:date>2022-05-20T14:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Outlier method in CAS. The calculation of percentiles did not converge</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Outlier-method-in-CAS-The-calculation-of-percentiles-did-not/m-p/814465#M9187</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks for the info! I will forward the ticket to our percentile action support.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 15:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Outlier-method-in-CAS-The-calculation-of-percentiles-did-not/m-p/814465#M9187</guid>
      <dc:creator>taiphe</dc:creator>
      <dc:date>2022-05-20T15:45:17Z</dc:date>
    </item>
  </channel>
</rss>

