<?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 Fixed effect with Clustered S.E for dichotomous dependent variable in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Fixed-effect-with-Clustered-S-E-for-dichotomous-dependent/m-p/581000#M28498</link>
    <description>&lt;DIV class="lia-message-heading lia-component-message-header"&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-standard"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-left"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;&lt;DIV class="lia-message-subject"&gt;Hi&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to run a regression&amp;nbsp;where Y is a dichotomous variable (1,0). All independent variables are continuous variables. I want standard errors to be clustered at firm level, with a fixed effect at industry level. I need to&amp;nbsp;obtain propensity scores for observations, therefore my preference is to use logit or probit model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently using the code below, but it does not account for either clustered SE or fixed effect.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods exclude all;

proc logistic data=have descending;
    model Y = X1 X2  /link=probit rsquare;
  output out=prob pred=ps;

ods output ParameterEstimates=coef;
run;

ods exclude none;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly suggest some solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 14 Aug 2019 07:26:51 GMT</pubDate>
    <dc:creator>Saba1</dc:creator>
    <dc:date>2019-08-14T07:26:51Z</dc:date>
    <item>
      <title>Fixed effect with Clustered S.E for dichotomous dependent variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Fixed-effect-with-Clustered-S-E-for-dichotomous-dependent/m-p/581000#M28498</link>
      <description>&lt;DIV class="lia-message-heading lia-component-message-header"&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-standard"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-left"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;&lt;DIV class="lia-message-subject"&gt;Hi&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to run a regression&amp;nbsp;where Y is a dichotomous variable (1,0). All independent variables are continuous variables. I want standard errors to be clustered at firm level, with a fixed effect at industry level. I need to&amp;nbsp;obtain propensity scores for observations, therefore my preference is to use logit or probit model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently using the code below, but it does not account for either clustered SE or fixed effect.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods exclude all;

proc logistic data=have descending;
    model Y = X1 X2  /link=probit rsquare;
  output out=prob pred=ps;

ods output ParameterEstimates=coef;
run;

ods exclude none;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly suggest some solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 Aug 2019 07:26:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Fixed-effect-with-Clustered-S-E-for-dichotomous-dependent/m-p/581000#M28498</guid>
      <dc:creator>Saba1</dc:creator>
      <dc:date>2019-08-14T07:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed effect with Clustered S.E for dichotomous dependent variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Fixed-effect-with-Clustered-S-E-for-dichotomous-dependent/m-p/581175#M28500</link>
      <description>&lt;P&gt;You could account for clustering by either fitting a random effects logistic model in PROC GLIMMIX, or a Generalized Estimating Equations (GEE) logistic model in PROC GEE (or GENMOD).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 15:05:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Fixed-effect-with-Clustered-S-E-for-dichotomous-dependent/m-p/581175#M28500</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-08-14T15:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed effect with Clustered S.E for dichotomous dependent variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Fixed-effect-with-Clustered-S-E-for-dichotomous-dependent/m-p/581307#M28515</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;&amp;nbsp;Thanks for your reply. I am using the following code to get cluster SE, but all the estimates, standard errors, and probabilities are similar to what the above-mentioned "proc logistic" model is giving. Please correct me if I am wrong in this code. Moreover, kindly advice on how to modify this code to consider fixed effect along-with cluster SE. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data= have descending;
class firm_ID / param=ref;
   model Y = X1 X2 /dist=bin link=probit r;
   	repeated subject=firm_ID; 
output out=prob pred=ps;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;,&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 23:21:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Fixed-effect-with-Clustered-S-E-for-dichotomous-dependent/m-p/581307#M28515</guid>
      <dc:creator>Saba1</dc:creator>
      <dc:date>2019-08-14T23:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed effect with Clustered S.E for dichotomous dependent variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Fixed-effect-with-Clustered-S-E-for-dichotomous-dependent/m-p/581421#M28518</link>
      <description>&lt;P&gt;Code is fine which you can see by running it. Without the TYPE= option in the REPEATED statement, you are saying that the correlation structure among the repeated measures in a cluster is one of independent, but a robust variance estimator is still used. You could use other structures such as exchangeable (TYPE=EXCH), autoregressive (TYPE=AR), or even unstructured (TYPE=UN) though this last can require estimating a lot of correlations and can cause fitting problems depending on the size of your clusters. But with any of these, the final parameter estimates and standard errors might still not substantially differ from PROC LOGISTIC depending on the correlation that exists in your data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Define what you mean by "fixed effect" - the GEE model you are fitting in GENMOD provides the prime advantage of a fixed effects model since it doesn't require estimating a parameter for each individual cluster and adjusts the variance of the estimates for the within-cluster correlation. But then so does the random effects model I mentioned earlier and also the conditional logistic model (accomplished with the STRATA statement in GENMOD or LOGISTIC). The conditional model is most often referred to as a "fixed effects" model, but predicted values are more problematic. See the book "Fixed Effects Regression Methods for Longitudinal Data Using SAS"&amp;nbsp; (Allison, P., SAS Institute, 2005).&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 14:26:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Fixed-effect-with-Clustered-S-E-for-dichotomous-dependent/m-p/581421#M28518</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-08-15T14:26:17Z</dc:date>
    </item>
  </channel>
</rss>

