<?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: 95% CIs for proportions from nominal variable in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/95-CIs-for-proportions-from-nominal-variable/m-p/776093#M38014</link>
    <description>That plot assumes that YEAR is treated as a continuous variable in the model, and since the lines are curved, the model specification does not assume that the effect of YEAR is linear. So, code like this will allow YEAR to have a quadratic effect and the EFFECTPLOT statement produces the plot. See the documentation of the EFFECTPLOT statement for details and more options.&lt;BR /&gt;proc gee;&lt;BR /&gt;class subject;&lt;BR /&gt;model gender=year|year / dist=mult link=glogit;&lt;BR /&gt;repeated subject=subject;&lt;BR /&gt;effectplot fit(x=year) / obs;&lt;BR /&gt;run;&lt;BR /&gt;</description>
    <pubDate>Sun, 24 Oct 2021 17:13:03 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2021-10-24T17:13:03Z</dc:date>
    <item>
      <title>95% CIs for proportions from nominal variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/95-CIs-for-proportions-from-nominal-variable/m-p/775919#M37995</link>
      <description>&lt;P&gt;I’d like to obtain 95% CIs for a variable nominal variable "gender" with 3 categories - male, female, and unknown; and have proportions over several years. Some of the same individuals are found in multiple years. Below is an example of the proportions I want to calculate the 95% CIs on:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rmfPS.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64959i8C2A9AAE14B2A053/image-size/large?v=v2&amp;amp;px=999" role="button" title="rmfPS.png" alt="rmfPS.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Does using "&lt;FONT size="3"&gt;Simultaneous confidence intervals for multinomial proportions" (&lt;/FONT&gt;e.g. &lt;A href="https://blogs.sas.com/content/iml/2017/02/15/confidence-intervals-multinomial-proportions.html" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/iml/2017/02/15/confidence-intervals-multinomial-proportions.html&lt;/A&gt;) look like the best approach to calculate these CIs?&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Can it take into account that the same individuals are found in multiple years? (or maybe that can be ignored here?)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 20:09:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/95-CIs-for-proportions-from-nominal-variable/m-p/775919#M37995</guid>
      <dc:creator>mjkop56</dc:creator>
      <dc:date>2021-10-22T20:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: 95% CIs for proportions from nominal variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/95-CIs-for-proportions-from-nominal-variable/m-p/776032#M38004</link>
      <description>&lt;P&gt;It looks like you want Regression model's CI , not multi-nominal proportions's CI.&lt;/P&gt;
&lt;P&gt;Try PROC REG or&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc loess data=sashelp.class;
model weight=height/ clm;
run;&lt;/PRE&gt;
&lt;P&gt;or calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Oct 2021 11:32:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/95-CIs-for-proportions-from-nominal-variable/m-p/776032#M38004</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-10-23T11:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: 95% CIs for proportions from nominal variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/95-CIs-for-proportions-from-nominal-variable/m-p/776038#M38006</link>
      <description>&lt;P&gt;You can use PROC GEE to deal with the repeated measurements and to fit a model to the nominal multinomial response. The LSMEANS statement with the ILINK and CL options provides the estimated probabilities and confidence intervals at each year.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc gee;
class year subject;
model gender=year / dist=mult link=glogit;
repeated subject=subject;
lsmeans year / ilink cl;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 23 Oct 2021 13:58:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/95-CIs-for-proportions-from-nominal-variable/m-p/776038#M38006</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-10-23T13:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: 95% CIs for proportions from nominal variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/95-CIs-for-proportions-from-nominal-variable/m-p/776039#M38007</link>
      <description>&lt;P&gt;Thank you! I am also running a model. My understanding with the model is that the confidence intervals go around the predicted probabilities, and not the observed proportions.&lt;/P&gt;&lt;P&gt;I was thinking of showing the CIs around both the observed proportions and the predicted probabilities? However, maybe this is not a good idea? Below is a link to the previous question about this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Question-about-standard-reporting-for-plots-of-proportions-and/td-p/775519?emcs_t=S2h8ZW1haWx8c29sdXRpb25fdG9fcXVlc3Rpb258S1YySlRJRVdTSVI1fDc3NTYwMHxBQ0NFUFRFRF9TT0xVVElPTlN8aEs" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/Question-about-standard-reporting-for-plots-of-proportions-and/td-p/775519?emcs_t=S2h8ZW1haWx8c29sdXRpb25fdG9fcXVlc3Rpb258S1YySlRJRVdTSVI1fDc3NTYwMHxBQ0NFUFRFRF9TT0xVVElPTlN8aEs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Oct 2021 14:38:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/95-CIs-for-proportions-from-nominal-variable/m-p/776039#M38007</guid>
      <dc:creator>mjkop56</dc:creator>
      <dc:date>2021-10-23T14:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: 95% CIs for proportions from nominal variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/95-CIs-for-proportions-from-nominal-variable/m-p/776089#M38012</link>
      <description>&lt;P&gt;When you say that "the confidence intervals go around the predicted probabilities, and not the observed proportions," I assume you mean that the point estimate is the predicted probability from the fitted model that used all of the data as opposed to the simple proportions computed using just the data in the separate gender-year combinations. It's up to you, but typically one tries to fit an appropriate model to all of the data and use that model to estimate the quantities of interest. That is what the code I showed earlier does.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Oct 2021 16:25:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/95-CIs-for-proportions-from-nominal-variable/m-p/776089#M38012</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-10-24T16:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: 95% CIs for proportions from nominal variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/95-CIs-for-proportions-from-nominal-variable/m-p/776092#M38013</link>
      <description>&lt;P&gt;Thank you Dave! I definitely want to go with what is typically done so I really appreciate your response. By " "the confidence intervals go around the predicted probabilities, and not the observed proportions" -&amp;nbsp; I meant something like the below - the black dots are the observed proportions, then there is a trend line from a model (predicted probabilities), and the confidence intervals go around the trend line, as opposed to being around the particular observed proportion. &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="madeupdata.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64986i63DD4A8E0FDB71C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="madeupdata.png" alt="madeupdata.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Oct 2021 16:47:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/95-CIs-for-proportions-from-nominal-variable/m-p/776092#M38013</guid>
      <dc:creator>mjkop56</dc:creator>
      <dc:date>2021-10-24T16:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: 95% CIs for proportions from nominal variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/95-CIs-for-proportions-from-nominal-variable/m-p/776093#M38014</link>
      <description>That plot assumes that YEAR is treated as a continuous variable in the model, and since the lines are curved, the model specification does not assume that the effect of YEAR is linear. So, code like this will allow YEAR to have a quadratic effect and the EFFECTPLOT statement produces the plot. See the documentation of the EFFECTPLOT statement for details and more options.&lt;BR /&gt;proc gee;&lt;BR /&gt;class subject;&lt;BR /&gt;model gender=year|year / dist=mult link=glogit;&lt;BR /&gt;repeated subject=subject;&lt;BR /&gt;effectplot fit(x=year) / obs;&lt;BR /&gt;run;&lt;BR /&gt;</description>
      <pubDate>Sun, 24 Oct 2021 17:13:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/95-CIs-for-proportions-from-nominal-variable/m-p/776093#M38014</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-10-24T17:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: 95% CIs for proportions from nominal variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/95-CIs-for-proportions-from-nominal-variable/m-p/776099#M38015</link>
      <description>&lt;P&gt;Wonderful. thanks so much for the tips, Dave!&lt;/P&gt;</description>
      <pubDate>Sun, 24 Oct 2021 19:17:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/95-CIs-for-proportions-from-nominal-variable/m-p/776099#M38015</guid>
      <dc:creator>mjkop56</dc:creator>
      <dc:date>2021-10-24T19:17:05Z</dc:date>
    </item>
  </channel>
</rss>

