<?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: Modelling Advice - common outcome in a complex survey in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-Advice-common-outcome-in-a-complex-survey/m-p/546676#M27331</link>
    <description>&lt;P&gt;The best I think you can do is use SAS proc surveylogistic and use a LSMEANS statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LSMEANS will give you a predicted probability for the values of the variables listed on the LSMEANS&amp;nbsp; statement. The variables on the LSMEANS statement have to be in your model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Per SAS 9.3 documentation, LS-means are &lt;EM&gt;predicted margins&lt;/EM&gt;—that is, they estimate the marginal means over a hypothetical balanced population.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume you can take the predicted probabilities and calculate your own relative risks or risk ratios.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2019 20:25:34 GMT</pubDate>
    <dc:creator>DWilson</dc:creator>
    <dc:date>2019-03-27T20:25:34Z</dc:date>
    <item>
      <title>Modelling Advice - common outcome in a complex survey</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-Advice-common-outcome-in-a-complex-survey/m-p/518704#M26457</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been grappling with this dataset for a while now, and every time I think have a solution, something goes wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using two-stage sample data, so have a strata and psu&amp;nbsp;indicator that I need to include to get standard errors that are reflective of the sampling method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm also using obesity as an outcome, which is very common (30%) meaning I need to calculate prevalence ratios or risk ratios explicitly, as odds ratios will&amp;nbsp;overestimate the association.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to be able to obtain adjusted values, as I'd like an estimate that I can go on to use in further models.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I can't seem to find any way to both get a relative risk &amp;amp; confidence intervals that account for the data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've had a gander with relrisk9 (publicly available&amp;nbsp;macro), which allows you to use GEE, but this will only let me adjust for the strata indicator, not the psu.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also had a go with proc surveylogistic&amp;nbsp;(which models the data) and nlestimates&amp;nbsp;(takes stored parameters to estimate RR). My stats understanding isn't exceptional, so I don't know if the confidence intervals produced by NLestimates reflect the initial standard error as a result of sampling. It uses the Delta method to construct CIs and calls for degrees of freedom, and if these aren't provided, large sample Wald statistics are used).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this is bang on (crosses fingers), should I be supplying the degrees of freedom (and how would I determine this) or are the Wald statistics likely to be adequate?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that's unlikely to have done what I need it to, what would you recommend? I've seen suggestions to use random effects models through&amp;nbsp;PROC GLIMMIX but don't know if that would provide a relative risk.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Exhausted.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 08:50:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modelling-Advice-common-outcome-in-a-complex-survey/m-p/518704#M26457</guid>
      <dc:creator>misha2</dc:creator>
      <dc:date>2018-12-05T08:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Modelling Advice - common outcome in a complex survey</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-Advice-common-outcome-in-a-complex-survey/m-p/546676#M27331</link>
      <description>&lt;P&gt;The best I think you can do is use SAS proc surveylogistic and use a LSMEANS statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LSMEANS will give you a predicted probability for the values of the variables listed on the LSMEANS&amp;nbsp; statement. The variables on the LSMEANS statement have to be in your model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Per SAS 9.3 documentation, LS-means are &lt;EM&gt;predicted margins&lt;/EM&gt;—that is, they estimate the marginal means over a hypothetical balanced population.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume you can take the predicted probabilities and calculate your own relative risks or risk ratios.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 20:25:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modelling-Advice-common-outcome-in-a-complex-survey/m-p/546676#M27331</guid>
      <dc:creator>DWilson</dc:creator>
      <dc:date>2019-03-27T20:25:34Z</dc:date>
    </item>
  </channel>
</rss>

