<?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: calculate the 95% CI for continuous and categorical variables in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/calculate-the-95-CI-for-continuous-and-categorical-variables/m-p/919709#M45664</link>
    <description>&lt;P&gt;You can calculate the upper and lower limits of continuous numeric variables in Proc MEANS, SUMMARY, UNIVARIATE, REPORT and TABULATE (and a few other places depending on what you are doing for analysis). So do you need a new data set? A report?&lt;/P&gt;
&lt;P&gt;Do you need this calculated for some group of values or over the data set as a whole?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Proc means data=yourdatasetname clm ;
   var day_dif result;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;Will provide&amp;nbsp; confidence limits of the mean over the entire data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Confidence intervals for categorical variables is pretty much a non-starter as there isn't any standard definition of such.&lt;/P&gt;</description>
    <pubDate>Sun, 10 Mar 2024 23:25:02 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-03-10T23:25:02Z</dc:date>
    <item>
      <title>calculate the 95% CI for continuous and categorical variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/calculate-the-95-CI-for-continuous-and-categorical-variables/m-p/919702#M45662</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I need help to calculate the 95% CI for the variables&amp;nbsp; day_diff and result for the table below.&lt;/P&gt;
&lt;TABLE style="width: 388px;" width="388"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="58"&gt;subject&lt;/TD&gt;
&lt;TD width="86"&gt;date2&l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D&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1014&lt;/TD&gt;
&lt;TD&gt;18-Jan-24&lt;/TD&gt;
&lt;TD&gt;9-Feb-23&lt;/TD&gt;
&lt;TD&gt;343&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1015&lt;/TD&gt;
&lt;TD&gt;6-Jun-23&lt;/TD&gt;
&lt;TD&gt;30-Nov-22&lt;/TD&gt;
&lt;TD&gt;188&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1016&lt;/TD&gt;
&lt;TD&gt;25-Apr-23&lt;/TD&gt;
&lt;TD&gt;7-Dec-22&lt;/TD&gt;
&lt;TD&gt;139&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1017&lt;/TD&gt;
&lt;TD&gt;11-Jul-23&lt;/TD&gt;
&lt;TD&gt;12-Jan-23&lt;/TD&gt;
&lt;TD&gt;180&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2024 22:28:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/calculate-the-95-CI-for-continuous-and-categorical-variables/m-p/919702#M45662</guid>
      <dc:creator>twix17</dc:creator>
      <dc:date>2024-03-10T22:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the 95% CI for continuous and categorical variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/calculate-the-95-CI-for-continuous-and-categorical-variables/m-p/919709#M45664</link>
      <description>&lt;P&gt;You can calculate the upper and lower limits of continuous numeric variables in Proc MEANS, SUMMARY, UNIVARIATE, REPORT and TABULATE (and a few other places depending on what you are doing for analysis). So do you need a new data set? A report?&lt;/P&gt;
&lt;P&gt;Do you need this calculated for some group of values or over the data set as a whole?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Proc means data=yourdatasetname clm ;
   var day_dif result;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;Will provide&amp;nbsp; confidence limits of the mean over the entire data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Confidence intervals for categorical variables is pretty much a non-starter as there isn't any standard definition of such.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2024 23:25:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/calculate-the-95-CI-for-continuous-and-categorical-variables/m-p/919709#M45664</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-03-10T23:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the 95% CI for continuous and categorical variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/calculate-the-95-CI-for-continuous-and-categorical-variables/m-p/919711#M45665</link>
      <description>&lt;P&gt;Result does not appear to be normally distributed. I don't know about day_diff, if that is normally distributed, but you can look into that. If day_diff is not normally distributed, you might want to look into non-parametric tests. For result, I would think that a binomial distribution test/CI would work, you can do this in PROC FREQ.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I assume you are talking about a 95% confidence interval for the mean, but since you didn't really say that, would you please state that my assumption is correct?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 00:04:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/calculate-the-95-CI-for-continuous-and-categorical-variables/m-p/919711#M45665</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-03-11T00:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the 95% CI for continuous and categorical variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/calculate-the-95-CI-for-continuous-and-categorical-variables/m-p/919722#M45668</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your response. But here is what's i am trying to create&amp;nbsp;bilateral asymptotic or exact confidence intervals for binomial distributions at the 95% level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 04:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/calculate-the-95-CI-for-continuous-and-categorical-variables/m-p/919722#M45668</guid>
      <dc:creator>twix17</dc:creator>
      <dc:date>2024-03-11T04:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the 95% CI for continuous and categorical variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/calculate-the-95-CI-for-continuous-and-categorical-variables/m-p/919723#M45669</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your response. But here is what's i am trying to create&amp;nbsp;bilateral asymptotic or exact confidence intervals for binomial distributions at the 95% level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 04:57:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/calculate-the-95-CI-for-continuous-and-categorical-variables/m-p/919723#M45669</guid>
      <dc:creator>twix17</dc:creator>
      <dc:date>2024-03-11T04:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the 95% CI for continuous and categorical variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/calculate-the-95-CI-for-continuous-and-categorical-variables/m-p/919726#M45670</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/425107"&gt;@twix17&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your response. But here is what's i am trying to create&amp;nbsp;bilateral asymptotic or exact confidence intervals for binomial distributions at the 95% level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Quite a bit different than your topic statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc freq data=yourdataset;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; tables&amp;nbsp; result/ binomial (cl=exact&amp;nbsp; );&amp;nbsp; /* there are multiple options for what type of confidence limits you want to use. Look at the proc freq syntax online help for specifics and limitations*/&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may have to specify a LEVEL='1' or Level='0' option to control which level is used for reporting. The more skewed your proportion may be (further from 50%) the more likely&amp;nbsp; this may be to look funny for your interpretation if you do not specify.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 05:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/calculate-the-95-CI-for-continuous-and-categorical-variables/m-p/919726#M45670</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-03-11T05:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the 95% CI for continuous and categorical variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/calculate-the-95-CI-for-continuous-and-categorical-variables/m-p/920583#M45726</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, I want&amp;nbsp;&lt;SPAN&gt;95% confidence interval for the mean for the continuous variable.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2024 04:06:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/calculate-the-95-CI-for-continuous-and-categorical-variables/m-p/920583#M45726</guid>
      <dc:creator>twix17</dc:creator>
      <dc:date>2024-03-17T04:06:24Z</dc:date>
    </item>
  </channel>
</rss>

