<?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: Calculating Confidence intervals for observed/expected ratios in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Calculating-Confidence-intervals-for-observed-expected-ratios/m-p/384173#M91695</link>
    <description>&lt;P&gt;I'm not sure if this is what you are efter, but you can request confidence limits for the mean by specifying the CLM option in the PROC MEANS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An example is in the PROC MEANS documentation here&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473542.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473542.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jul 2017 07:13:50 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2017-07-31T07:13:50Z</dc:date>
    <item>
      <title>Calculating Confidence intervals for observed/expected ratios</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-Confidence-intervals-for-observed-expected-ratios/m-p/384167#M91692</link>
      <description>&lt;P&gt;I have a simplified dataset: runner name, run trial (there are 10 trials), observed time for each trial, expected time&amp;nbsp;for each trial.&lt;/P&gt;&lt;P&gt;I sum up my observed and expected times using proc means and output a dataset.I then use the data statement to calculated a ratio for observed / expected for each runner. how do i calculate a confidence interval to see if there is a difference in o/e between my runners?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 06:42:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-Confidence-intervals-for-observed-expected-ratios/m-p/384167#M91692</guid>
      <dc:creator>sharonlee</dc:creator>
      <dc:date>2017-07-31T06:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Confidence intervals for observed/expected ratios</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-Confidence-intervals-for-observed-expected-ratios/m-p/384173#M91695</link>
      <description>&lt;P&gt;I'm not sure if this is what you are efter, but you can request confidence limits for the mean by specifying the CLM option in the PROC MEANS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An example is in the PROC MEANS documentation here&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473542.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473542.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 07:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-Confidence-intervals-for-observed-expected-ratios/m-p/384173#M91695</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-07-31T07:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Confidence intervals for observed/expected ratios</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-Confidence-intervals-for-observed-expected-ratios/m-p/384443#M91807</link>
      <description>&lt;P&gt;Hi, Thanks for responding.&amp;nbsp;It's not the mean value I want per runner. I was the ratio for each runner.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 21:03:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-Confidence-intervals-for-observed-expected-ratios/m-p/384443#M91807</guid>
      <dc:creator>sharonlee</dc:creator>
      <dc:date>2017-07-31T21:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Confidence intervals for observed/expected ratios</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-Confidence-intervals-for-observed-expected-ratios/m-p/384693#M91909</link>
      <description>&lt;P&gt;You should post some sample data, which will make it easier for people to help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might consider the &lt;STRONG&gt;difference&lt;/STRONG&gt; in the runner's time, rather than the ratio. If you have several runners and you want to compare their mean times and determine if the mean times are significantly different, you can use PROC GLM to run an ANOVA and a multiple comparison&amp;nbsp;of means.&amp;nbsp;There are several examples in the PROC GLM doc, including one that &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_glm_examples07.htm" target="_self"&gt;treats repeated observations&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 17:28:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-Confidence-intervals-for-observed-expected-ratios/m-p/384693#M91909</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-08-01T17:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Confidence intervals for observed/expected ratios</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-Confidence-intervals-for-observed-expected-ratios/m-p/396051#M95576</link>
      <description>&lt;P&gt;My sample data look like this:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;runner_name&lt;/TD&gt;&lt;TD&gt;run trial&lt;/TD&gt;&lt;TD&gt;observed time (minutes)&lt;/TD&gt;&lt;TD&gt;expected time (minutes)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;name1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;name1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;32&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;name2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;name2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;name3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;name3&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;name3&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;51&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;name3&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;87&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;name3&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I sum up my observed and expected times using proc means and output a dataset.I then use the data statement to calculated a ratio for observed / expected for each runner.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to see if my overall observed/expected ratio is significantly different between runners. I'd like to generate 95% confidence intervals. Can I do this in SAS? This is not a binomial proportion so i can't use proc freq to calculate CIs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 18:55:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-Confidence-intervals-for-observed-expected-ratios/m-p/396051#M95576</guid>
      <dc:creator>sharonlee</dc:creator>
      <dc:date>2017-09-14T18:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Confidence intervals for observed/expected ratios</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-Confidence-intervals-for-observed-expected-ratios/m-p/396061#M95580</link>
      <description>&lt;P&gt;Given the irregular values in your table of expected run times, I presume your runners are not all running the same set of distances, ... or are otherwise not subjected to the same set of running conditions.&amp;nbsp; So I can see why you are considering O/E&amp;nbsp; instead of O-E.&amp;nbsp; But maybe if O is a predictor var, you can still use O-E as the dependent var.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 19:35:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-Confidence-intervals-for-observed-expected-ratios/m-p/396061#M95580</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2017-09-14T19:35:01Z</dc:date>
    </item>
  </channel>
</rss>

