<?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: Getting standardized residuals with proc genmod in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Getting-standardized-residuals-with-proc-genmod/m-p/337626#M17808</link>
    <description>&lt;P&gt;Please post your full code and log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have any issues in SAS 9.4M3. Note what SAS version you have, and what SAS/STAT version you have as well.&lt;/P&gt;
&lt;P&gt;If the code below doesn't run successfully, include the log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data drug;
   input drug$ x r n @@;
   datalines;
A  .1   1  10   A  .23  2  12   A  .67  1   9
B  .2   3  13   B  .3   4  15   B  .45  5  16   B  .78  5  13
C  .04  0  10   C  .15  0  11   C  .56  1  12   C  .7   2  12
D  .34  5  10   D  .6   5   9   D  .7   8  10
E  .2  12  20   E  .34 15  20   E  .56 13  15   E  .8  17  20
;

proc genmod data=drug;
   class drug;
   model r/n = x drug / dist = bin
                        link = logit
                        lrci;
output out = overallstd stdresdev=stdresdev p=predicted;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 02 Mar 2017 21:59:50 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-03-02T21:59:50Z</dc:date>
    <item>
      <title>Getting standardized residuals with proc genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Getting-standardized-residuals-with-proc-genmod/m-p/337618#M17807</link>
      <description>&lt;P&gt;I'm having trouble getting output of standardized pearson residuals and standardized deviance residuals in proc genmod. I was able to get non standardize residuals with this code:&lt;/P&gt;&lt;P&gt;output out = overall3 reschi=reschi p=predicted;&lt;/P&gt;&lt;P&gt;but get all missing values when using this code: output out = overallstd stdresdev=stdresdev p=predicted;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any assistance&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 21:46:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Getting-standardized-residuals-with-proc-genmod/m-p/337618#M17807</guid>
      <dc:creator>sharcole</dc:creator>
      <dc:date>2017-03-02T21:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting standardized residuals with proc genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Getting-standardized-residuals-with-proc-genmod/m-p/337626#M17808</link>
      <description>&lt;P&gt;Please post your full code and log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have any issues in SAS 9.4M3. Note what SAS version you have, and what SAS/STAT version you have as well.&lt;/P&gt;
&lt;P&gt;If the code below doesn't run successfully, include the log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data drug;
   input drug$ x r n @@;
   datalines;
A  .1   1  10   A  .23  2  12   A  .67  1   9
B  .2   3  13   B  .3   4  15   B  .45  5  16   B  .78  5  13
C  .04  0  10   C  .15  0  11   C  .56  1  12   C  .7   2  12
D  .34  5  10   D  .6   5   9   D  .7   8  10
E  .2  12  20   E  .34 15  20   E  .56 13  15   E  .8  17  20
;

proc genmod data=drug;
   class drug;
   model r/n = x drug / dist = bin
                        link = logit
                        lrci;
output out = overallstd stdresdev=stdresdev p=predicted;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Mar 2017 21:59:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Getting-standardized-residuals-with-proc-genmod/m-p/337626#M17808</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-02T21:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting standardized residuals with proc genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Getting-standardized-residuals-with-proc-genmod/m-p/337635#M17809</link>
      <description>Thank you,&lt;BR /&gt;&lt;BR /&gt;Your example works - I have 9.4 TS1M3&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When I try with my own data, however, it is not working.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I note that your dependent variable is r/n . Would this have any implications?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The full code looks like this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc genmod data=stigma4 descending ;&lt;BR /&gt;&lt;BR /&gt;class subid adependent (ref="0=No") time (ref="0")&lt;BR /&gt;&lt;BR /&gt;marstat_bl (ref="1=Married/living with partner")&lt;BR /&gt;&lt;BR /&gt;employ_bl (ref="1=Yes") educ9_bl (ref="0=No") msm2_bl (ref="2=N/A") suiclife_bl (ref="0=No")&lt;BR /&gt;&lt;BR /&gt;moddep (ref="0=No") supportmedian (ref="1=Yes") drug_dependent (ref="0=No")/param=ref ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;model negimage_2 = adependent time marstat_bl employ_bl educ9_bl&lt;BR /&gt;&lt;BR /&gt;msm2_bl suiclife_bl moddep supportmedian drug_dependent&lt;BR /&gt;&lt;BR /&gt;mcs pcs hiv_yrs_bl ls_age_bl / dist=bin type3 link=logit lrci;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;output out = overallstd stdresdev=stdresdev p=predicted;&lt;BR /&gt;&lt;BR /&gt;repeated subject=subid/ type=ind corrw ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Mar 2017 22:18:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Getting-standardized-residuals-with-proc-genmod/m-p/337635#M17809</guid>
      <dc:creator>sharcole</dc:creator>
      <dc:date>2017-03-02T22:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting standardized residuals with proc genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Getting-standardized-residuals-with-proc-genmod/m-p/337697#M17811</link>
      <description>&lt;P&gt;I noticed you are using REPEAT statement, that mean you are fiting GEE.&lt;/P&gt;
&lt;P&gt;Can you see the standardized residuals&amp;nbsp;in the output ?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 03:15:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Getting-standardized-residuals-with-proc-genmod/m-p/337697#M17811</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-03-03T03:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Getting standardized residuals with proc genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Getting-standardized-residuals-with-proc-genmod/m-p/337863#M17825</link>
      <description>&lt;P&gt;Hi - Yes, this is a GEE.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wondering if &lt;SPAN&gt;The standardized residuals cannot be computed mathmatically for GEE models?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I get all missing values in the output. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank&amp;nbsp; you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 15:26:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Getting-standardized-residuals-with-proc-genmod/m-p/337863#M17825</guid>
      <dc:creator>sharcole</dc:creator>
      <dc:date>2017-03-03T15:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting standardized residuals with proc genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Getting-standardized-residuals-with-proc-genmod/m-p/338086#M17832</link>
      <description>&lt;P&gt;If you can not see standardized residuals in RESULT printed by GEE, then you can not get it,&lt;/P&gt;
&lt;P&gt;GEE take residuals as correlation.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2017 02:47:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Getting-standardized-residuals-with-proc-genmod/m-p/338086#M17832</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-03-04T02:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting standardized residuals with proc genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Getting-standardized-residuals-with-proc-genmod/m-p/338115#M17834</link>
      <description>&lt;P&gt;Add option OBSTATS into MODEL statement and see if you can get Pearson residual, if you can obtain it then you can output it.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2017 13:39:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Getting-standardized-residuals-with-proc-genmod/m-p/338115#M17834</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-03-04T13:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting standardized residuals with proc genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Getting-standardized-residuals-with-proc-genmod/m-p/338541#M17843</link>
      <description>&lt;P&gt;Thank you all-&lt;/P&gt;&lt;P&gt;SAS technical support clarified: &lt;SPAN&gt;The standardized residuals cannot be computed for GEE models. They depend on the deviance or Hessian matrix which isn't involved in the GEE estimation method&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 19:14:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Getting-standardized-residuals-with-proc-genmod/m-p/338541#M17843</guid>
      <dc:creator>sharcole</dc:creator>
      <dc:date>2017-03-06T19:14:39Z</dc:date>
    </item>
  </channel>
</rss>

