<?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: Quantile function of a normal distribution with a mean and st.dev set by me in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Quantile-function-of-a-normal-distribution-with-a-mean-and-st/m-p/844593#M36703</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/436841"&gt;@ari2495&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;this is valid also if i need to perform a double side test? or in this case i need to compute even the low quantile?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you are looking for the critical values for the significance level alpha, you can use alpha and 1-alpha to get both the upper and lower quantiles. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;alpha = 0.05;   /* significance level */
qU=quantile('normal',1-alpha/2,mean,dev_st); /* upper critical value */
qL=quantile('normal',alpha/2,mean,dev_st); /* lower critical value */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;A test statistic in the interval [qL, qU] will not reject the two-sided null hypothesis. A test statistic that is less than qL or greater than qU will reject H0.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2022 10:56:09 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2022-11-16T10:56:09Z</dc:date>
    <item>
      <title>Quantile function of a normal distribution with a mean and st.dev set by me</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Quantile-function-of-a-normal-distribution-with-a-mean-and-st/m-p/844580#M36698</link>
      <description>&lt;P&gt;Hi, i would like to use a quantile function to estimate the quantile of a normal distribution that have a certain mean and a certain st. dev.&lt;/P&gt;&lt;P&gt;I can't find the function.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data output_dataset;
set input_dataset;
length esito $50.;
p=quantile('NORMAL', .975);
input mean dev_st;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I was using this code but this is not correct.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 09:05:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Quantile-function-of-a-normal-distribution-with-a-mean-and-st/m-p/844580#M36698</guid>
      <dc:creator>ari2495</dc:creator>
      <dc:date>2022-11-16T09:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Quantile function of a normal distribution with a mean and st.dev set by me</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Quantile-function-of-a-normal-distribution-with-a-mean-and-st/m-p/844584#M36699</link>
      <description>Try this:&lt;BR /&gt;proc univariate data=have;&lt;BR /&gt;output out=want pctlpts=97.5 pctlpre=p;&lt;BR /&gt;run;</description>
      <pubDate>Wed, 16 Nov 2022 09:28:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Quantile-function-of-a-normal-distribution-with-a-mean-and-st/m-p/844584#M36699</guid>
      <dc:creator>HumbleMe</dc:creator>
      <dc:date>2022-11-16T09:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Quantile function of a normal distribution with a mean and st.dev set by me</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Quantile-function-of-a-normal-distribution-with-a-mean-and-st/m-p/844585#M36700</link>
      <description>okay and where do I specify mean and st dev?</description>
      <pubDate>Wed, 16 Nov 2022 09:42:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Quantile-function-of-a-normal-distribution-with-a-mean-and-st/m-p/844585#M36700</guid>
      <dc:creator>ari2495</dc:creator>
      <dc:date>2022-11-16T09:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Quantile function of a normal distribution with a mean and st.dev set by me</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Quantile-function-of-a-normal-distribution-with-a-mean-and-st/m-p/844586#M36701</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/436841"&gt;@ari2495&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the input dataset contains means and standard deviations, you can compute (and don't need to "estimate") the 97.5% quantiles (and similarly any other quantiles) of the corresponding normal distributions using the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/n0uhywbqfucg6qn18woziy41flqp.htm" target="_blank" rel="noopener"&gt;QUANTILE&lt;/A&gt; or &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/n0gygnmlse8n5in1sp1u2n97lpej.htm" target="_blank" rel="noopener"&gt;PROBIT&lt;/A&gt; function as shown in the example below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Create sample data for demonstration */

data have;
input mean dev_st;
cards;
0 1
0 5
100 10
-42 1.23
;

/* Compute the 97.5% quantiles of the normal distributions with the above parameters */

data want;
set have;
q=quantile('normal',0.975,mean,dev_st); /* = dev_st*probit(0.975)+mean */
run;

proc print data=want;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Nov 2022 09:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Quantile-function-of-a-normal-distribution-with-a-mean-and-st/m-p/844586#M36701</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-11-16T09:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Quantile function of a normal distribution with a mean and st.dev set by me</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Quantile-function-of-a-normal-distribution-with-a-mean-and-st/m-p/844587#M36702</link>
      <description>this is valid also if i need to perform a double side test? or in this case i need to compute even the low quantile?</description>
      <pubDate>Wed, 16 Nov 2022 10:10:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Quantile-function-of-a-normal-distribution-with-a-mean-and-st/m-p/844587#M36702</guid>
      <dc:creator>ari2495</dc:creator>
      <dc:date>2022-11-16T10:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Quantile function of a normal distribution with a mean and st.dev set by me</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Quantile-function-of-a-normal-distribution-with-a-mean-and-st/m-p/844593#M36703</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/436841"&gt;@ari2495&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;this is valid also if i need to perform a double side test? or in this case i need to compute even the low quantile?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you are looking for the critical values for the significance level alpha, you can use alpha and 1-alpha to get both the upper and lower quantiles. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;alpha = 0.05;   /* significance level */
qU=quantile('normal',1-alpha/2,mean,dev_st); /* upper critical value */
qL=quantile('normal',alpha/2,mean,dev_st); /* lower critical value */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;A test statistic in the interval [qL, qU] will not reject the two-sided null hypothesis. A test statistic that is less than qL or greater than qU will reject H0.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 10:56:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Quantile-function-of-a-normal-distribution-with-a-mean-and-st/m-p/844593#M36703</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-11-16T10:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Quantile function of a normal distribution with a mean and st.dev set by me</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Quantile-function-of-a-normal-distribution-with-a-mean-and-st/m-p/844598#M36706</link>
      <description>&lt;P&gt;Quantiles of normal distributions can be calculated as shown without any reference to a statistical test. The normal quantiles that are typically used in statistical tests are those of the &lt;EM&gt;standard&lt;/EM&gt; normal distribution N(0, 1), so you could simply use the PROBIT function. But many statistical tests are available through SAS procedures. In these cases you don't need to compute quantiles at all because SAS has already done this and provides you with ready-to-use p-values. Often in such cases the normal distribution is only an approximation of the exact distribution of a test statistic and the procedure might rather use that exact distribution (e.g., the &lt;EM&gt;t&amp;nbsp;&lt;/EM&gt;distribution in &lt;A href="https://documentation.sas.com/doc/en/statug/15.2/statug_ttest_overview.htm" target="_blank" rel="noopener"&gt;PROC TTEST&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From a mean and a standard deviation alone (as in dataset HAVE), no statistical test can be computed anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need help with a statistical test, please start a new thread in the &lt;A href="https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures" target="_blank" rel="noopener"&gt;Statistical Procedures&lt;/A&gt; subforum, clearly state the null and alternative hypotheses or your research question and provide sample data (in the form of a data step), if any, together with a description of how they were collected and what else can be assumed.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 11:12:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Quantile-function-of-a-normal-distribution-with-a-mean-and-st/m-p/844598#M36706</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-11-16T11:12:43Z</dc:date>
    </item>
  </channel>
</rss>

