<?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: How to Calculate LS Mean,95%CI and p-value. in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Calculate-LS-Mean-95-CI-and-p-value/m-p/117869#M6170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I don't have access to sasuser.admit;&lt;/P&gt;&lt;P&gt;so,I used sashelp.class (which is not suitable for what you want, but it will give you an idea);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glm data = sashelp.class;&lt;/P&gt;&lt;P&gt;class sex; *need to put your group variable in the class statement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; model age = sex;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lsmeans sex/stderr cl;&lt;/P&gt;&lt;P&gt;run;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anca.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jun 2013 12:12:37 GMT</pubDate>
    <dc:creator>AncaTilea</dc:creator>
    <dc:date>2013-06-25T12:12:37Z</dc:date>
    <item>
      <title>How to Calculate LS Mean,95%CI and p-value.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Calculate-LS-Mean-95-CI-and-p-value/m-p/117868#M6169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i am regular user for Base SAS,SQL and Macros but i did't come across to Statistical procedures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today my client came up with me a report ,in that i need to show some statistical columns which are LS MEANS ,95%CI and p-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLient requirement looks likes bellow..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Actlevel&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;N&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;mean&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;SD&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;LS MEAN&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;95 % CI&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;p-value&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HIGH&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;xx&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;xx.x&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;xx.xx&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;xxx.xx&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;(xx.xx,xx.xx)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;x.xxxx&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOW&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;xx&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;xx.x&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;xx.xx&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;xxx.xx&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;(xx.xx,xx.xx)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;x.xxxx&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MOD&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;xx&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;xx.x&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;xx.xx&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;xxx.xx&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;(xx.xx,xx.xx)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;x.xxxx&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please provide sample code to get above statistics as i dod't have much time to go through the statistical procedures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please use SASUSER.ADMIT dataset to generate above table then i can adopt that code for my original dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="f" style="color: #666666; font-family: arial, sans-serif; font-size: small; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; color: #444444; font-family: arial, sans-serif; font-size: small; background-color: #ffffff;"&gt;Any help&lt;/SPAN&gt;&lt;SPAN style="color: #444444; font-size: small; background-color: #ffffff; font-family: arial, sans-serif;"&gt;&lt;STRONG&gt; you can give &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; color: #444444; font-family: arial, sans-serif; font-size: small; background-color: #ffffff;"&gt;would be greatly appreciated&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note :&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="font-size: 9pt;"&gt;&lt;STRONG&gt;Confidence Interval from the ANCOVA model.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="font-size: 9pt;"&gt;&lt;STRONG&gt; $=p-Value from the ANCOVA model. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="font-size: 9pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="font-size: 9pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="font-size: 9pt;"&gt;&lt;STRONG&gt;Thanks &amp;amp;Regards.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="font-size: 9pt;"&gt;&lt;STRONG&gt;Sanjeev.K&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 10:43:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Calculate-LS-Mean-95-CI-and-p-value/m-p/117868#M6169</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2013-06-25T10:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate LS Mean,95%CI and p-value.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Calculate-LS-Mean-95-CI-and-p-value/m-p/117869#M6170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I don't have access to sasuser.admit;&lt;/P&gt;&lt;P&gt;so,I used sashelp.class (which is not suitable for what you want, but it will give you an idea);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glm data = sashelp.class;&lt;/P&gt;&lt;P&gt;class sex; *need to put your group variable in the class statement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; model age = sex;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lsmeans sex/stderr cl;&lt;/P&gt;&lt;P&gt;run;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anca.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 12:12:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Calculate-LS-Mean-95-CI-and-p-value/m-p/117869#M6170</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2013-06-25T12:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate LS Mean,95%CI and p-value.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Calculate-LS-Mean-95-CI-and-p-value/m-p/117870#M6171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anca ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you so much for your rply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i am attaching Admit Dataset. Could you please try on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i have few quires on your provided solution..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;Is this values based on ANCOVA model ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;Is this possible to get output dataset with these values ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once again thank you for your response ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Sanjeev.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 13:01:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Calculate-LS-Mean-95-CI-and-p-value/m-p/117870#M6171</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2013-06-25T13:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate LS Mean,95%CI and p-value.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Calculate-LS-Mean-95-CI-and-p-value/m-p/117871#M6172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, here is for example one link that shows ANCOVA analysis with SAS:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.stat.sc.edu/~hitchcock/crackersasexample.txt" title="http://www.stat.sc.edu/~hitchcock/crackersasexample.txt"&gt;http://www.stat.sc.edu/~hitchcock/crackersasexample.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and this one:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_glm_sect049.htm" title="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_glm_sect049.htm"&gt;SAS/STAT(R) 9.2 User's Guide, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to know from you is what is your X (independent variable) and what is your Y (dependent variable)? I assume that your X is the ActLevel (as per the sasuser.admit data set).&lt;/P&gt;&lt;P&gt;But what is the Y?&lt;/P&gt;&lt;P&gt;What I mean is that you need to set up a (simple) model where the group variable is your X and you need a Y so you can conclude if there are differences in Y between the X's groups.&lt;/P&gt;&lt;P&gt;Anyway....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, there are ways to output the results by using either ods statement or the output out...&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 13:49:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Calculate-LS-Mean-95-CI-and-p-value/m-p/117871#M6172</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2013-06-25T13:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate LS Mean,95%CI and p-value.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Calculate-LS-Mean-95-CI-and-p-value/m-p/911943#M45267</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am facing the same problem can you please share code with me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 10:45:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Calculate-LS-Mean-95-CI-and-p-value/m-p/911943#M45267</guid>
      <dc:creator>FidaHussain</dc:creator>
      <dc:date>2024-01-18T10:45:23Z</dc:date>
    </item>
  </channel>
</rss>

