<?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: Comparing the difference in means of two subgroups for a binary variable for weighted data? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Comparing-the-difference-in-means-of-two-subgroups-for-a-binary/m-p/450359#M23551</link>
    <description>&lt;P&gt;With a logistic model, the difference of LS-means as provided by the LSMEANS / DIFF statement is a difference in log odds, or log odds ratio. If you particularly need the difference in means, then that is a nonlinear combination of model parameters which can only be done using the &lt;A href="http://support.sas.com/kb/58775" target="_self"&gt;NLEstimate macro&lt;/A&gt;. You will have to determine the proper function to estimate based on your model. See &lt;A href="http://support.sas.com/kb/37228.html" target="_self"&gt;this example&lt;/A&gt; which shows estimating a difference in probabilities from a logistic model. It uses a model in PROC LOGISTIC, but the same should still apply to a model from SURVEYLOGISTIC.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Apr 2018 14:19:12 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2018-04-02T14:19:12Z</dc:date>
    <item>
      <title>Comparing the difference in means of two subgroups for a binary variable for weighted data?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparing-the-difference-in-means-of-two-subgroups-for-a-binary/m-p/450109#M23533</link>
      <description>&lt;P&gt;Does anyone know how I can compare the difference in means for a binary variable for two subgroups using one of the proc survey procedures? I have to use the proc survey procedures because my data has weights. I know I am supposed to use the LS means option, but I don't really see how a regression would make sense with my dependent variable and my subgroups as my independent. I did try doing it regardless in procsurveyreg, but I get non-est for some of my parameter estimates. Please help!&lt;/P&gt;</description>
      <pubDate>Sat, 31 Mar 2018 05:24:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparing-the-difference-in-means-of-two-subgroups-for-a-binary/m-p/450109#M23533</guid>
      <dc:creator>knicks1189</dc:creator>
      <dc:date>2018-03-31T05:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing the difference in means of two subgroups for a binary variable for weighted data?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparing-the-difference-in-means-of-two-subgroups-for-a-binary/m-p/450359#M23551</link>
      <description>&lt;P&gt;With a logistic model, the difference of LS-means as provided by the LSMEANS / DIFF statement is a difference in log odds, or log odds ratio. If you particularly need the difference in means, then that is a nonlinear combination of model parameters which can only be done using the &lt;A href="http://support.sas.com/kb/58775" target="_self"&gt;NLEstimate macro&lt;/A&gt;. You will have to determine the proper function to estimate based on your model. See &lt;A href="http://support.sas.com/kb/37228.html" target="_self"&gt;this example&lt;/A&gt; which shows estimating a difference in probabilities from a logistic model. It uses a model in PROC LOGISTIC, but the same should still apply to a model from SURVEYLOGISTIC.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 14:19:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparing-the-difference-in-means-of-two-subgroups-for-a-binary/m-p/450359#M23551</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2018-04-02T14:19:12Z</dc:date>
    </item>
  </channel>
</rss>

