<?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 Proc Univariate pctlpts????? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-pctlpts/m-p/40223#M10404</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
When using Proc Univariate to pick out percentiles is there any way to not specify the percentiles by putting in a number but instead putting in a variable name that contains the number of the percentile I'm trying to find? Here's a what I mean in code&lt;BR /&gt;
&lt;BR /&gt;
I want to say this&lt;BR /&gt;
&lt;BR /&gt;
proc univariate data=test normal plot;&lt;BR /&gt;
by t j;&lt;BR /&gt;
where replicate le 2000 &amp;amp; t=1;&lt;BR /&gt;
var y10;&lt;BR /&gt;
output out=work.BCT1_95lower_y10 pctlpts= lowerlimit_y10&lt;BR /&gt;
 pctlpre=y10;&lt;BR /&gt;
 run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
but this doesn't work the pctlpts option appears to only work if you specify the number....&lt;BR /&gt;
&lt;BR /&gt;
please help....&lt;BR /&gt;
Thanks</description>
    <pubDate>Tue, 19 Aug 2008 16:00:22 GMT</pubDate>
    <dc:creator>Andy</dc:creator>
    <dc:date>2008-08-19T16:00:22Z</dc:date>
    <item>
      <title>Proc Univariate pctlpts?????</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-pctlpts/m-p/40223#M10404</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
When using Proc Univariate to pick out percentiles is there any way to not specify the percentiles by putting in a number but instead putting in a variable name that contains the number of the percentile I'm trying to find? Here's a what I mean in code&lt;BR /&gt;
&lt;BR /&gt;
I want to say this&lt;BR /&gt;
&lt;BR /&gt;
proc univariate data=test normal plot;&lt;BR /&gt;
by t j;&lt;BR /&gt;
where replicate le 2000 &amp;amp; t=1;&lt;BR /&gt;
var y10;&lt;BR /&gt;
output out=work.BCT1_95lower_y10 pctlpts= lowerlimit_y10&lt;BR /&gt;
 pctlpre=y10;&lt;BR /&gt;
 run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
but this doesn't work the pctlpts option appears to only work if you specify the number....&lt;BR /&gt;
&lt;BR /&gt;
please help....&lt;BR /&gt;
Thanks</description>
      <pubDate>Tue, 19 Aug 2008 16:00:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-pctlpts/m-p/40223#M10404</guid>
      <dc:creator>Andy</dc:creator>
      <dc:date>2008-08-19T16:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate pctlpts?????</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-pctlpts/m-p/40224#M10405</link>
      <description>In essence, what I'm hearing you say is that you want a different percentile point for each BY group, and the particular percentile is stored in the variable y10.&lt;BR /&gt;
&lt;BR /&gt;
Am I reading this correctly?</description>
      <pubDate>Tue, 19 Aug 2008 17:13:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-pctlpts/m-p/40224#M10405</guid>
      <dc:creator>mftuchman</dc:creator>
      <dc:date>2008-08-19T17:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate pctlpts?????</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-pctlpts/m-p/40225#M10406</link>
      <description>yeah but the the different percentile points are stored in the variable lowerlimit_y10</description>
      <pubDate>Tue, 19 Aug 2008 17:36:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-pctlpts/m-p/40225#M10406</guid>
      <dc:creator>Andy</dc:creator>
      <dc:date>2008-08-19T17:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Univariate pctlpts?????</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-pctlpts/m-p/40226#M10407</link>
      <description>You may be better off with a PROC RANK - rank your variable, then do a second pass with a data step using the same BY groups to subtract the percentile rank from the value of lower_limit.  Then OUTPUT the first observation greater than the value in y10_lowerlimit.&lt;BR /&gt;
&lt;BR /&gt;
Or something like that.  Obviously, you're closer to the situation than I am so I cannot make a definitive statement.</description>
      <pubDate>Wed, 20 Aug 2008 14:10:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Univariate-pctlpts/m-p/40226#M10407</guid>
      <dc:creator>mftuchman</dc:creator>
      <dc:date>2008-08-20T14:10:09Z</dc:date>
    </item>
  </channel>
</rss>

