<?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: Surveyreg to obtain robust standard errors in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Surveyreg-to-obtain-robust-standard-errors/m-p/909712#M45152</link>
    <description>Thank you</description>
    <pubDate>Tue, 26 Dec 2023 21:48:46 GMT</pubDate>
    <dc:creator>Callam1</dc:creator>
    <dc:date>2023-12-26T21:48:46Z</dc:date>
    <item>
      <title>Surveyreg to obtain robust standard errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Surveyreg-to-obtain-robust-standard-errors/m-p/909653#M45150</link>
      <description>Is the code below correct to obtain robust standard errors for a regression where the outcome variable is binary (0,1) and the independent variables are categorical and binaries? The dataset is at individual level: one unique person (identified by ID) per row. Is it right to use ‘cluster id’ to obtain robust S.E.? Is it ok to use individual weights together with the ‘cluster id’ option as done below?&lt;BR /&gt;&lt;BR /&gt;proc surveyreg data=matched_dataset;&lt;BR /&gt;cluster id;&lt;BR /&gt;class is_treated(ref='0') categorical_covariates;&lt;BR /&gt;model outcome_variable = is_treated covariate1 covariate2 …/ CLPARM solution;&lt;BR /&gt;weight _MATCHWGT_;&lt;BR /&gt;run;</description>
      <pubDate>Mon, 25 Dec 2023 17:15:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Surveyreg-to-obtain-robust-standard-errors/m-p/909653#M45150</guid>
      <dc:creator>Callam1</dc:creator>
      <dc:date>2023-12-25T17:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Surveyreg to obtain robust standard errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Surveyreg-to-obtain-robust-standard-errors/m-p/909678#M45151</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you only want robust standard errors, you can indeed specify the cluster variable to be the identifier variable.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Like here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyreg data=yourdata;
cluster id;
model y = x1 x2 x3 / covb;
run;&amp;nbsp;QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And, of course, you can specify a WEIGHT statement (if the weights are&amp;nbsp;&lt;SPAN&gt;sampling weights).&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="xisDoc-eDocBody"&gt;
&lt;DIV class="xisDoc-refProc"&gt;
&lt;DIV id="statug.surveyreg.weightstmt" class="aa-section"&gt;
&lt;P class="xisDoc-paragraph"&gt;If you do not specify a WEIGHT statement or a REPWEIGHTS statement, PROC SURVEYREG assigns all observations a weight of one.&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;But are you sure you want PROC SURVEYREG??&lt;BR /&gt;Keep in mind&amp;nbsp;&lt;SPAN&gt;that your outcome variable is binary (0,1).&lt;BR /&gt;PROC SURVEYLOGISTIC seems more appropriate then anyway.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;Koen&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Dec 2023 10:32:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Surveyreg-to-obtain-robust-standard-errors/m-p/909678#M45151</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-12-26T10:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Surveyreg to obtain robust standard errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Surveyreg-to-obtain-robust-standard-errors/m-p/909712#M45152</link>
      <description>Thank you</description>
      <pubDate>Tue, 26 Dec 2023 21:48:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Surveyreg-to-obtain-robust-standard-errors/m-p/909712#M45152</guid>
      <dc:creator>Callam1</dc:creator>
      <dc:date>2023-12-26T21:48:46Z</dc:date>
    </item>
  </channel>
</rss>

