<?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: How to obtain White standard errors for Logistic Regression in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-White-standard-errors-for-Logistic-Regression/m-p/606671#M76592</link>
    <description>&lt;P&gt;Better post it at Stat Forum and calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Nov 2019 11:25:48 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2019-11-23T11:25:48Z</dc:date>
    <item>
      <title>How to obtain White standard errors for Logistic Regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-White-standard-errors-for-Logistic-Regression/m-p/606638#M76584</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been asked to calculate white standard errors for a logistic regression model for a work project. Here are some specifics about the data set I'm using:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; RCT data collected across 2 separate healthcare sites&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. One observation per row (eg subjectid, age, race, cci, etc)&lt;/P&gt;&lt;P&gt;3. This is not survey data&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Need to cluster by the site variable&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original model was created by the head statistician using Stata. I need to replicate his model using SAS. The survey logistic procedure produces p-values that are relatively close to those of the head statistician's model (magnitude of the ORs don't change). Have also tried using GENMOD and GLM but am unable to execute the procedures due to multiple error messages.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Considering this, I would like to find the SAS implementation that most closely resembles Stata output for fitting a Logistic Regression model with Heteroskedastic Corrected Standard Errors (Huber White).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Logistic Regression code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=x;&lt;BR /&gt;class gender (ref='1') race1 (ref='2') medicare (ref='0') medicaid (ref='0') priv_ins (ref='0') inc_ind (ref='1')&lt;BR /&gt;&amp;nbsp;hospitalizations2 (ref='0') diabetes(ref='0') cpd(ref='0') chf (ref='0') site (ref='1')&lt;BR /&gt;health_new (ref='1') receive_care (ref='1')/param=ref;&lt;BR /&gt;model alert (event='1') = agebaseline gender race1 medicare medicaid priv_ins inc_ind traveltime&amp;nbsp;&lt;BR /&gt;hospitalizations2 edvisits update_cci cpd chf diabetes pt_days site health_new receive_care;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2019 01:10:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-White-standard-errors-for-Logistic-Regression/m-p/606638#M76584</guid>
      <dc:creator>Mike19</dc:creator>
      <dc:date>2019-11-23T01:10:05Z</dc:date>
    </item>
    <item>
      <title>Need to write code to for white standard error for logistic regression model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-White-standard-errors-for-Logistic-Regression/m-p/606639#M76588</link>
      <description>&lt;P&gt;Hi there,&lt;BR /&gt;&lt;BR /&gt;I've been asked to calculate white standard errors for a logistic regression model for a work project. Here are some specifics about the data set I'm using:&lt;BR /&gt;1. RCT data collected across 2 separate healthcare sites&lt;BR /&gt;2. One observation per row (eg subjectid, age, race, cci, etc)&lt;BR /&gt;3. This is not survey data&lt;BR /&gt;4. Need to cluster by the site variable&lt;BR /&gt;&lt;BR /&gt;The original model was created by the head statistician using Stata. I need to replicate his model using SAS. The survey logistic procedure produces p-values that are relatively close to those of the head statistician's model (magnitude of the ORs don't change). Have also tried using GENMOD and GLM but am unable to execute the procedures due to multiple error messages.&lt;BR /&gt;&lt;BR /&gt;Considering this, I would like to find the SAS implementation that most closely resembles Stata output for fitting a Logistic Regression model with Heteroskedastic Corrected Standard Errors (Huber White).&lt;BR /&gt;&lt;BR /&gt;My Logistic Regression code:&lt;BR /&gt;&lt;BR /&gt;proc logistic data=x;&lt;BR /&gt;class gender (ref='1') race1 (ref='2') medicare (ref='0') medicaid (ref='0') priv_ins (ref='0') inc_ind (ref='1')&lt;BR /&gt;hospitalizations2 (ref='0') diabetes(ref='0') cpd(ref='0') chf (ref='0') site (ref='1')&lt;BR /&gt;health_new (ref='1') receive_care (ref='1')/param=ref;&lt;BR /&gt;model alert (event='1') = agebaseline gender race1 medicare medicaid priv_ins inc_ind traveltime&lt;BR /&gt;hospitalizations2 edvisits update_cci cpd chf diabetes pt_days site health_new receive_care;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated!&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;M&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2019 01:13:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-White-standard-errors-for-Logistic-Regression/m-p/606639#M76588</guid>
      <dc:creator>Mike19</dc:creator>
      <dc:date>2019-11-23T01:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need to write code to for white standard error for logistic regression model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-White-standard-errors-for-Logistic-Regression/m-p/606644#M76589</link>
      <description>&lt;P&gt;Perhaps this helps?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/White-standard-errors/td-p/129061" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/White-standard-errors/td-p/129061&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, please don't post the same question twice.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2019 02:07:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-White-standard-errors-for-Logistic-Regression/m-p/606644#M76589</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-23T02:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain White standard errors for Logistic Regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-White-standard-errors-for-Logistic-Regression/m-p/606645#M76586</link>
      <description>&lt;P&gt;Duplicate question&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All replies should be at &lt;A href="https://communities.sas.com/t5/SAS-Programming/Need-to-write-code-to-for-white-standard-error-for-logistic/td-p/606639" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Need-to-write-code-to-for-white-standard-error-for-logistic/td-p/606639&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2019 02:08:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-White-standard-errors-for-Logistic-Regression/m-p/606645#M76586</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-23T02:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain White standard errors for Logistic Regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-White-standard-errors-for-Logistic-Regression/m-p/606662#M76591</link>
      <description>Thank you for your reply. Oops, apologies for the duplicate posts....&lt;BR /&gt;&lt;BR /&gt;I read the above link earlier this week and it wasn’t very helpful. I’m asking the question bc I’ve exhausted all of my readily available information sources (SAS Help, UCLA site, and even YouTube).&lt;BR /&gt;&lt;BR /&gt;Any help is welcome.</description>
      <pubDate>Sat, 23 Nov 2019 05:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-White-standard-errors-for-Logistic-Regression/m-p/606662#M76591</guid>
      <dc:creator>Mike19</dc:creator>
      <dc:date>2019-11-23T05:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain White standard errors for Logistic Regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-White-standard-errors-for-Logistic-Regression/m-p/606671#M76592</link>
      <description>&lt;P&gt;Better post it at Stat Forum and calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2019 11:25:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-White-standard-errors-for-Logistic-Regression/m-p/606671#M76592</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-11-23T11:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain White standard errors for Logistic Regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-White-standard-errors-for-Logistic-Regression/m-p/606675#M76593</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/300853"&gt;@Mike19&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thank you for your reply. Oops, apologies for the duplicate posts....&lt;BR /&gt;&lt;BR /&gt;I read the above link earlier this week and it wasn’t very helpful. I’m asking the question bc I’ve exhausted all of my readily available information sources (SAS Help, UCLA site, and even YouTube).&lt;BR /&gt;&lt;BR /&gt;Any help is welcome.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Have you tried using an internet search engine?&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2019 11:55:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-White-standard-errors-for-Logistic-Regression/m-p/606675#M76593</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-23T11:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain White standard errors for Logistic Regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-White-standard-errors-for-Logistic-Regression/m-p/607049#M76612</link>
      <description>&lt;P&gt;See the Generalized linear models part of the item "White's empirical ("sandwich") variance estimator and robust standard errors" in the Frequently-Asked for Statistics (&lt;A href="http://support.sas.com/kb/30333" target="_self"&gt;FASTats list)&lt;/A&gt;&amp;nbsp;which is a link in the Important Links section on the right side of the Statistical Procedures Community page.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 16:36:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-White-standard-errors-for-Logistic-Regression/m-p/607049#M76612</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-11-25T16:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain White standard errors for Logistic Regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-White-standard-errors-for-Logistic-Regression/m-p/607256#M76616</link>
      <description>This is very helpful, thanks.</description>
      <pubDate>Tue, 26 Nov 2019 10:12:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-obtain-White-standard-errors-for-Logistic-Regression/m-p/607256#M76616</guid>
      <dc:creator>Mike19</dc:creator>
      <dc:date>2019-11-26T10:12:11Z</dc:date>
    </item>
  </channel>
</rss>

