<?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: proc mixed to get mean and SE in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/proc-mixed-to-get-mean-and-SE/m-p/725852#M28080</link>
    <description>&lt;P&gt;I think that's what is supposed to happen with the SE when you estimate some type of linear model for the two-way ANOVA case, and there are equal number of observations in each cell.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Mar 2021 17:49:52 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-03-12T17:49:52Z</dc:date>
    <item>
      <title>proc mixed to get mean and SE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-mixed-to-get-mean-and-SE/m-p/725847#M28079</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to use sashelp.class as an example to get mean and SE (standard error) values of height by proc mixed and I like to save these values in a dataset.&amp;nbsp; I found all the SE values are the exactly the same. This is my first time to touch proc mixed, so I really get confused. Anyone can give me some&amp;nbsp; explanation? Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc mixed data=sashelp.class(where=(Age in (14,15)));
  class Sex  Age;
  model Height = Sex  Age;
    lsmeans Sex  Age;
run;&lt;/PRE&gt;
&lt;P&gt;Here is output:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mixed_output.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55886iDCD5811B00E849FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mixed_output.PNG" alt="mixed_output.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 17:22:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-mixed-to-get-mean-and-SE/m-p/725847#M28079</guid>
      <dc:creator>lc7033907</dc:creator>
      <dc:date>2021-03-12T17:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed to get mean and SE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-mixed-to-get-mean-and-SE/m-p/725852#M28080</link>
      <description>&lt;P&gt;I think that's what is supposed to happen with the SE when you estimate some type of linear model for the two-way ANOVA case, and there are equal number of observations in each cell.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 17:49:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-mixed-to-get-mean-and-SE/m-p/725852#M28080</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-03-12T17:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed to get mean and SE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-mixed-to-get-mean-and-SE/m-p/725991#M28082</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;, anyway to correct it, because I guess those numbers should not be equal. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 21:27:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-mixed-to-get-mean-and-SE/m-p/725991#M28082</guid>
      <dc:creator>lc7033907</dc:creator>
      <dc:date>2021-03-12T21:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed to get mean and SE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-mixed-to-get-mean-and-SE/m-p/726000#M28083</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/361912"&gt;@lc7033907&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&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;, anyway to correct it, because I guess those numbers should not be equal. Thanks.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You are incorrect. The SE numbers should be equal in this example.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 22:19:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-mixed-to-get-mean-and-SE/m-p/726000#M28083</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-03-12T22:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed to get mean and SE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-mixed-to-get-mean-and-SE/m-p/726028#M28084</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;Thank you. Now let me modify my real problem&amp;nbsp; and I hope to get some hints. The following is data that I have&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input subjid $2.   Avisitc $3-10 trt $ CHG;
datalines;
1 week 12 A 3.7
1 week 16 A 4.8
2 week 12 B -2
2 week 16 B -2.2
3 week 12 A -3
3 week 16 A -2.5
4 week 12 B 2.8
4 week 16 B 3.0
5 week 12 A 7.0
5 week 16 A 7.1
6 week 12 B 6.4
6 week 16 B 6.8
7 week 12 A -5
7 week 16 A -5.4
8 week 12 B 10
8 week 16 B 11
9 week 12 B -6.4
9 week 16 B -7.1
10 week 12 A 6.3
10 week 16 A 6.9
;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I want to get a report in the following:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="report_want.PNG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55907i3F67290C898580B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="report_want.PNG" alt="report_want.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Now I have trouble on the last column, because I never use proc mixed before. Any hints are appreciated. Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Mar 2021 04:32:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-mixed-to-get-mean-and-SE/m-p/726028#M28084</guid>
      <dc:creator>lc7033907</dc:creator>
      <dc:date>2021-03-13T04:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed to get mean and SE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-mixed-to-get-mean-and-SE/m-p/726040#M28085</link>
      <description>&lt;P&gt;You can get most of this from PROC MIXED&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select lsmeans;
proc mixed data=have;
    class avisitc trt;
    model chg = avisitc*trt;
    lsmeans avisitc*trt;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If it has to be displayed EXACTLY as shown, then that is a job for other PROCs, and I would recommend you start another thread to discuss how to display results exactly in the desired report form.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Mar 2021 12:35:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-mixed-to-get-mean-and-SE/m-p/726040#M28085</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-03-13T12:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed to get mean and SE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-mixed-to-get-mean-and-SE/m-p/726047#M28086</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;. Your code is exactly the same as what I did on my own. Since I got the same values on SE, I thought I was wrong. Thank you once again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Mar 2021 16:33:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-mixed-to-get-mean-and-SE/m-p/726047#M28086</guid>
      <dc:creator>lc7033907</dc:creator>
      <dc:date>2021-03-13T16:33:35Z</dc:date>
    </item>
  </channel>
</rss>

