<?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: Identifying Unused Observations in PROC PHREG in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Identifying-Unused-Observations-in-PROC-PHREG/m-p/312249#M16461</link>
    <description>&lt;P&gt;Dear PG, thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried your suggestion in the Fine and gray model, and the log states that&amp;nbsp;NOTE: &lt;FONT color="#800000"&gt;The RESMART= option (OUTPUT statement) is ignored for the Fine and Gray competing-risks analysis.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dataset has no missing value. However, my situation is that when the univeriate analysis was taken, everything is OK (the number of used observations = the number of read&amp;nbsp;observations). But when the multivariate model was analized, things would be like this, as below:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods graphics on;&lt;BR /&gt;proc phreg data=model_os_m plots(overlay=stratum)=cif;&lt;BR /&gt;class A&amp;nbsp;(ref='Normal');&lt;BR /&gt;class B(order=internal ref=first) C(order=internal ref=first);&lt;BR /&gt;model dftime*status(0)=A&amp;nbsp;B&amp;nbsp;C&amp;nbsp;D / eventcode=1;&lt;BR /&gt;Hazardratio 'Pairwise' A&amp;nbsp;/ diff=pairwise;&lt;BR /&gt;baseline covariates=cov_os2_m out=outos2m cif=_all_;&lt;BR /&gt;output out=resOut resmart=resmart;&lt;BR /&gt;&amp;nbsp;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;&lt;U&gt;&lt;STRONG&gt;NOTE: 331 observations were deleted due either to missing or invalid values for the time,&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;&lt;U&gt;&lt;STRONG&gt;censoring, frequency or explanatory variables or to invalid operations in generating the&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;&lt;U&gt;&lt;STRONG&gt;values for some of the explanatory variables.&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;NOTE: Convergence criterion (GCONV=1E-8) satisfied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please tell me how can I solve this problem in fine and gray model test?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Nov 2016 09:16:32 GMT</pubDate>
    <dc:creator>Alddle</dc:creator>
    <dc:date>2016-11-17T09:16:32Z</dc:date>
    <item>
      <title>Identifying Unused Observations in PROC PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Identifying-Unused-Observations-in-PROC-PHREG/m-p/143602#M7536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Dear Community,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #333333; background-color: #fdfdfc;"&gt;When I run PROC &lt;/SPAN&gt;&lt;SPAN class="ZmSearchResult" id="DWT2241" style="background-color: #fffec4; color: #333333;"&gt;&lt;SPAN class="ZmSearchResult" id="DWT2243" style="font-size: 10pt;"&gt;PHREG&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #fdfdfc;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #fdfdfc;"&gt;on my data set, I get the following output:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; background-color: #fdfdfc;"&gt;Number of Observations Read&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2565&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; background-color: #fdfdfc;"&gt;Number of Observations Used&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2487&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; background-color: #fdfdfc;"&gt;I want to see the unused observations; I'm guessing that there were missing values in at least 1 of the variables in those observations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; background-color: #fdfdfc;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; background-color: #fdfdfc;"&gt;I have been told that there is no way to do this within PROC PHREG, so I have to do this with PROC FREQ or PROC PRINT.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; background-color: #fdfdfc;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; background-color: #fdfdfc;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; background-color: #fdfdfc;"&gt;My questions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; background-color: #fdfdfc;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; background-color: #fdfdfc;"&gt;1) &lt;SPAN style="color: #333333; background-color: #fdfdfc;"&gt;How can I display the observations that were NOT used in PROC PHREG?&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; background-color: #fdfdfc;"&gt;&lt;SPAN style="color: #333333; background-color: #fdfdfc;"&gt;2) &lt;/SPAN&gt;Is there any way to make PROC FREQ/PRINT "talk" to PROC PHREG?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #333333; background-color: #fdfdfc;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #fdfdfc;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; background-color: #fdfdfc;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; background-color: #fdfdfc;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; background-color: #fdfdfc;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: monospace; background-color: #fdfdfc;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Eric&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 May 2014 02:11:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Identifying-Unused-Observations-in-PROC-PHREG/m-p/143602#M7536</guid>
      <dc:creator>EricCai</dc:creator>
      <dc:date>2014-05-04T02:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying Unused Observations in PROC PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Identifying-Unused-Observations-in-PROC-PHREG/m-p/143603#M7537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the fact that residuals cannot be calculated for unused observations. Try adding the statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;output out=resOut resmart=resmart;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to the phreg procedure, and then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc print data=resOut; where resmart is missing; run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 May 2014 02:58:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Identifying-Unused-Observations-in-PROC-PHREG/m-p/143603#M7537</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-05-04T02:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying Unused Observations in PROC PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Identifying-Unused-Observations-in-PROC-PHREG/m-p/143604#M7538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was very helpful - thanks, PGStats!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 01:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Identifying-Unused-Observations-in-PROC-PHREG/m-p/143604#M7538</guid>
      <dc:creator>EricCai</dc:creator>
      <dc:date>2014-05-08T01:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying Unused Observations in PROC PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Identifying-Unused-Observations-in-PROC-PHREG/m-p/312249#M16461</link>
      <description>&lt;P&gt;Dear PG, thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried your suggestion in the Fine and gray model, and the log states that&amp;nbsp;NOTE: &lt;FONT color="#800000"&gt;The RESMART= option (OUTPUT statement) is ignored for the Fine and Gray competing-risks analysis.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dataset has no missing value. However, my situation is that when the univeriate analysis was taken, everything is OK (the number of used observations = the number of read&amp;nbsp;observations). But when the multivariate model was analized, things would be like this, as below:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods graphics on;&lt;BR /&gt;proc phreg data=model_os_m plots(overlay=stratum)=cif;&lt;BR /&gt;class A&amp;nbsp;(ref='Normal');&lt;BR /&gt;class B(order=internal ref=first) C(order=internal ref=first);&lt;BR /&gt;model dftime*status(0)=A&amp;nbsp;B&amp;nbsp;C&amp;nbsp;D / eventcode=1;&lt;BR /&gt;Hazardratio 'Pairwise' A&amp;nbsp;/ diff=pairwise;&lt;BR /&gt;baseline covariates=cov_os2_m out=outos2m cif=_all_;&lt;BR /&gt;output out=resOut resmart=resmart;&lt;BR /&gt;&amp;nbsp;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;&lt;U&gt;&lt;STRONG&gt;NOTE: 331 observations were deleted due either to missing or invalid values for the time,&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;&lt;U&gt;&lt;STRONG&gt;censoring, frequency or explanatory variables or to invalid operations in generating the&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;&lt;U&gt;&lt;STRONG&gt;values for some of the explanatory variables.&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;NOTE: Convergence criterion (GCONV=1E-8) satisfied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please tell me how can I solve this problem in fine and gray model test?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 09:16:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Identifying-Unused-Observations-in-PROC-PHREG/m-p/312249#M16461</guid>
      <dc:creator>Alddle</dc:creator>
      <dc:date>2016-11-17T09:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying Unused Observations in PROC PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Identifying-Unused-Observations-in-PROC-PHREG/m-p/312566#M16474</link>
      <description>&lt;P&gt;I like that simple solution for finding unused observations. But, it is possible that unused observations will not have missing value in the residual. If an observation is the only one in a riskset, and it doesnt contribute to any other risksets, then the residual is zero and not missing.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  a=0; strata=0;
  do t=1,3,5;output;end;
  a=1;
  do t=2,4,6; if t=6 then strata=1; output; end;
run;

proc phreg data=test;
  model  t=a;
  strata strata;
  output out=resOut resmart=resmart;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Nov 2016 09:55:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Identifying-Unused-Observations-in-PROC-PHREG/m-p/312566#M16474</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2016-11-18T09:55:11Z</dc:date>
    </item>
  </channel>
</rss>

