<?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 corr p-values not showing and Pearson output missing in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-corr-p-values-not-showing-and-Pearson-output-missing/m-p/419675#M67841</link>
    <description>&lt;P&gt;I recently used the spearman and noprob options in a proc corr statement. Now when I use proc corr for other data without those options, SAS will not give me p-values in the results and only runs Spearman correlations instead of Pearson correlations. Is there a way to reverse these options? It appears that using them once permanently affected my SAS output.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2017 19:19:35 GMT</pubDate>
    <dc:creator>anonymous_user</dc:creator>
    <dc:date>2017-12-08T19:19:35Z</dc:date>
    <item>
      <title>proc corr p-values not showing and Pearson output missing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-corr-p-values-not-showing-and-Pearson-output-missing/m-p/419675#M67841</link>
      <description>&lt;P&gt;I recently used the spearman and noprob options in a proc corr statement. Now when I use proc corr for other data without those options, SAS will not give me p-values in the results and only runs Spearman correlations instead of Pearson correlations. Is there a way to reverse these options? It appears that using them once permanently affected my SAS output.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 19:19:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-corr-p-values-not-showing-and-Pearson-output-missing/m-p/419675#M67841</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2017-12-08T19:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: proc corr p-values not showing and Pearson output missing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-corr-p-values-not-showing-and-Pearson-output-missing/m-p/419677#M67842</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without probability&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc corr data=sashelp.cars spearman noprob;&lt;BR /&gt;var horsepower mpg_highway;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With probability&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc corr data=sashelp.cars spearman;&lt;BR /&gt;var horsepower mpg_highway;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 19:39:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-corr-p-values-not-showing-and-Pearson-output-missing/m-p/419677#M67842</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2017-12-08T19:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: proc corr p-values not showing and Pearson output missing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-corr-p-values-not-showing-and-Pearson-output-missing/m-p/419685#M67843</link>
      <description>&lt;P&gt;Right, so what I am saying is I ran the first code that you provided above to get spearman estimates without p-values. But then when I tried to run a proc corr on new data where I wanted pearson estimates and p-values, i still got spearman output and p values were not available. My problem is that the original code that i ran including spearman and noprob somehow permanently turned off pearson estimates and p-values for my future proc corr statements.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 19:47:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-corr-p-values-not-showing-and-Pearson-output-missing/m-p/419685#M67843</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2017-12-08T19:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc corr p-values not showing and Pearson output missing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-corr-p-values-not-showing-and-Pearson-output-missing/m-p/419686#M67844</link>
      <description>&lt;P&gt;I don't think noprob is a system option. If this is a system options then it will affect subsequent analysis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc options;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and this works for new data as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;New data - With probability&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc corr data=sashelp.class spearman;&lt;BR /&gt;var height weight;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 19:55:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-corr-p-values-not-showing-and-Pearson-output-missing/m-p/419686#M67844</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2017-12-08T19:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: proc corr p-values not showing and Pearson output missing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-corr-p-values-not-showing-and-Pearson-output-missing/m-p/419691#M67845</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/42042"&gt;@stat_sas&lt;/a&gt;&amp;nbsp;says, NOPROB is not a system option, and it cannot be retained for future analyses.&amp;nbsp; I am guessing the following: you made a mistake in your second PROC CORR run, you did not look in the log an see that mistake, and all you see is the same output without probabilities in the results window.&amp;nbsp; Check your log and/or try it in a new SAS session.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 20:14:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-corr-p-values-not-showing-and-Pearson-output-missing/m-p/419691#M67845</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-12-08T20:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: proc corr p-values not showing and Pearson output missing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-corr-p-values-not-showing-and-Pearson-output-missing/m-p/419697#M67846</link>
      <description>&lt;P&gt;Show the code and any messages from the log that does not create the desired output.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 20:32:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-corr-p-values-not-showing-and-Pearson-output-missing/m-p/419697#M67846</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-12-08T20:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: proc corr p-values not showing and Pearson output missing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-corr-p-values-not-showing-and-Pearson-output-missing/m-p/419722#M67847</link>
      <description>&lt;P&gt;This is a new sas session. That is why im confused and thought it might be a system option.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 22:17:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-corr-p-values-not-showing-and-Pearson-output-missing/m-p/419722#M67847</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2017-12-08T22:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: proc corr p-values not showing and Pearson output missing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-corr-p-values-not-showing-and-Pearson-output-missing/m-p/419723#M67848</link>
      <description>&lt;P&gt;Without seeing your log, no one can help you.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 22:19:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-corr-p-values-not-showing-and-Pearson-output-missing/m-p/419723#M67848</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-12-08T22:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: proc corr p-values not showing and Pearson output missing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-corr-p-values-not-showing-and-Pearson-output-missing/m-p/419726#M67849</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;phreg&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = fram;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;model&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; timemi*hospmi(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;) = diabetes;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;output&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = residuals2 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ressch&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = sh_diabetes;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; failures2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; residuals2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; hospmi = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;rank&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = failures2 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = ranked2 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ties&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = mean;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; timemi;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ranks&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; timerank;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;corr&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = ranked2 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;pearson&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;nosimple&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;with&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; timerank;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; sh_diabetes;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;22 proc phreg data = fram;&lt;/P&gt;&lt;P&gt;23 model timemi*hospmi(0) = diabetes;&lt;/P&gt;&lt;P&gt;24 output out = residuals2 ressch = sh_diabetes;&lt;/P&gt;&lt;P&gt;25 run;&lt;/P&gt;&lt;P&gt;NOTE: Convergence criterion (GCONV=1E-8) satisfied.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.RESIDUALS2 has 4240 observations and 40&lt;/P&gt;&lt;P&gt;variables.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE PHREG used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.59 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.18 seconds&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;26 data failures2;&lt;/P&gt;&lt;P&gt;27 set residuals2;&lt;/P&gt;&lt;P&gt;28 where hospmi = 1;&lt;/P&gt;&lt;P&gt;29 run;&lt;/P&gt;&lt;P&gt;NOTE: There were 363 observations read from the data set WORK.RESIDUALS2.&lt;/P&gt;&lt;P&gt;WHERE hospmi=1;&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.FAILURES2 has 363 observations and 40 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.04 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;30 proc rank data = failures2 out = ranked2 ties = mean;&lt;/P&gt;&lt;P&gt;31 var timemi;&lt;/P&gt;&lt;P&gt;32 ranks timerank;&lt;/P&gt;&lt;P&gt;33 run;&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.RANKED2 has 363 observations and 41 variables.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE RANK used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.17 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;34 proc corr data = ranked2 pearson nosimple;&lt;/P&gt;&lt;P&gt;35 with timerank;&lt;/P&gt;&lt;P&gt;36 var sh_diabetes;&lt;/P&gt;&lt;P&gt;37 run;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE CORR used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.04 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the output gives a correlation but no p-value underneath&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 22:28:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-corr-p-values-not-showing-and-Pearson-output-missing/m-p/419726#M67849</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2017-12-08T22:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc corr p-values not showing and Pearson output missing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-corr-p-values-not-showing-and-Pearson-output-missing/m-p/419728#M67850</link>
      <description>&lt;P&gt;I wonder if you are using a modified template.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
 list base.corr.StackedMatrix;
 list common.StackedMatrix;
 source base.corr.StackedMatrix;
 source base.corr.StackedMatrix;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Does your log look something like this?&amp;nbsp; Are the templates coming from sashelp?&amp;nbsp; If not, submit those steps substituting delete for source and try again.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;40   proc template;
41    list base.corr.StackedMatrix;
42    list common.StackedMatrix;
43    source base.corr.StackedMatrix;
define table Base.Corr.StackedMatrix;
   notes "Default CORR stacked matrix";
   column (RowName RowLabel) (Matrix) * (Matrix2) * (Matrix3) * (Matrix4);
   translate _val_=._ into "";

   define RowName;
      varname = Variable;
      parent = Common.Column.RowName;
   end;

   define RowLabel;
      varname = Label;
      parent = Common.Column.RowLabel;
   end;
   parent = common.stackedmatrix;
   split_stack = OFF;
end;
NOTE: Path 'Base.Corr.StackedMatrix' is in: SASHELP.TMPLBASE (via SASHELP.TMPLMST).
44    source base.corr.StackedMatrix;
define table Base.Corr.StackedMatrix;
   notes "Default CORR stacked matrix";
   column (RowName RowLabel) (Matrix) * (Matrix2) * (Matrix3) * (Matrix4);
   translate _val_=._ into "";

   define RowName;
      varname = Variable;
      parent = Common.Column.RowName;
   end;

   define RowLabel;
      varname = Label;
      parent = Common.Column.RowLabel;
   end;
   parent = common.stackedmatrix;
   split_stack = OFF;
end;
NOTE: Path 'Base.Corr.StackedMatrix' is in: SASHELP.TMPLBASE (via SASHELP.TMPLMST).
45   quit;
NOTE: PROCEDURE TEMPLATE used (Total process time):
      real time           0.04 seconds
      cpu time            0.03 seconds


&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Dec 2017 22:40:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-corr-p-values-not-showing-and-Pearson-output-missing/m-p/419728#M67850</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-12-08T22:40:07Z</dc:date>
    </item>
  </channel>
</rss>

