<?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: Randomized block design and meaning of LSMEAN/STDERR in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Randomized-block-design-and-meaning-of-LSMEAN-STDERR/m-p/968218#M48669</link>
    <description>Thanks! I will go through the examples. An unbalanced design might be more suitable. If there are other models that may be more appropriate for my situation, please let me know.</description>
    <pubDate>Thu, 05 Jun 2025 04:40:44 GMT</pubDate>
    <dc:creator>gorandomwalk24</dc:creator>
    <dc:date>2025-06-05T04:40:44Z</dc:date>
    <item>
      <title>Randomized block design and meaning of LSMEAN/STDERR</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Randomized-block-design-and-meaning-of-LSMEAN-STDERR/m-p/968127#M48650</link>
      <description>&lt;P&gt;I have data from a randomized block design with 2 treatments and 4 blocks. Each block has unequal size of subjects: only 1 subject for treatment A and a different number of subject from treatment B for each of the 4 blocks. I need to generate a graph showing the mean and error bar for each treatment group. I used the following code:&lt;/P&gt;&lt;P&gt;proc glm;&lt;/P&gt;&lt;P&gt;class trt block;&lt;/P&gt;&lt;P&gt;model outcome=trt block;&lt;/P&gt;&lt;P&gt;lsmean trt/stderr;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;I then use the lsmean and stderr to generate a bar graph for treatment A and B. However, it gave me a pause when I saw the stderr generated by this model for treatment A is almost 3 times higher than the raw data using proc mean (var outcome; where trt='A';), for which I only have 1 pt per block. Is my glm model correct? I think for my bar graph I should use the SE from proc means. Any insight would be greatly appreciated.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 11:59:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Randomized-block-design-and-meaning-of-LSMEAN-STDERR/m-p/968127#M48650</guid>
      <dc:creator>gorandomwalk24</dc:creator>
      <dc:date>2025-06-04T11:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Randomized block design and meaning of LSMEAN/STDERR</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Randomized-block-design-and-meaning-of-LSMEAN-STDERR/m-p/968164#M48654</link>
      <description>&lt;P&gt;Without going into how to fit an RCBD, I will take a swing at the large standard error that gets reported for treatment A. It comes down to the assumption of homogeneous variances that underlies GLM. GLM uses the pooled root mean squared error to calculate the standard errors, which may not be appropriate in a design where you treat BLOCK as a fixed effect, and the number of observations per block is unequal. Work through the first and third examples for PROC GLM in the SAS documentation. The first is for the analysis of an RCBD, the third is for an unbalanced ANOVA for a two-way design.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 16:48:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Randomized-block-design-and-meaning-of-LSMEAN-STDERR/m-p/968164#M48654</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2025-06-04T16:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Randomized block design and meaning of LSMEAN/STDERR</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Randomized-block-design-and-meaning-of-LSMEAN-STDERR/m-p/968213#M48667</link>
      <description>I don't understand.&lt;BR /&gt;proc means just give you the arithmetic mean ,&lt;BR /&gt;while proc glm give you the adjusted least square mean.&lt;BR /&gt;They are totally different.&lt;BR /&gt;And proc means + lclm= and uclm= gave you then CI of mean .&lt;BR /&gt;uclm= mean + 1.96*stderr &lt;BR /&gt;lclm= mean  -  1.96*stderr &lt;BR /&gt;&lt;BR /&gt;"lsmean trt/stderr; " gave you the stderr of adjusted least square mean.They are totally different thing either .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;proc glm data=sashelp.heart(obs=1000);&lt;BR /&gt;class sex bp_status;&lt;BR /&gt;model weight=sex bp_status;&lt;BR /&gt;lsmeans sex/stderr;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;You would get:&lt;BR /&gt;Sex Weight_LSMEAN  Stderr&lt;BR /&gt;Female 139.218165 0.993106 &lt;BR /&gt;Male 165.465634 1.193024 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But if you are using :&lt;BR /&gt;proc means data=sashelp.heart(obs=1000) mean stderr;&lt;BR /&gt;class sex;&lt;BR /&gt;var weight;&lt;BR /&gt;run;&lt;BR /&gt;You would get:&lt;BR /&gt;Sex Nobs  Mean Stderr&lt;BR /&gt;Female 587 140.9368601 0.9771919 &lt;BR /&gt;Male 413 167.5922330 1.2143178 &lt;BR /&gt;&lt;BR /&gt;They are totally different.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Jun 2025 01:37:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Randomized-block-design-and-meaning-of-LSMEAN-STDERR/m-p/968213#M48667</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-06-05T01:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Randomized block design and meaning of LSMEAN/STDERR</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Randomized-block-design-and-meaning-of-LSMEAN-STDERR/m-p/968218#M48669</link>
      <description>Thanks! I will go through the examples. An unbalanced design might be more suitable. If there are other models that may be more appropriate for my situation, please let me know.</description>
      <pubDate>Thu, 05 Jun 2025 04:40:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Randomized-block-design-and-meaning-of-LSMEAN-STDERR/m-p/968218#M48669</guid>
      <dc:creator>gorandomwalk24</dc:creator>
      <dc:date>2025-06-05T04:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Randomized block design and meaning of LSMEAN/STDERR</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Randomized-block-design-and-meaning-of-LSMEAN-STDERR/m-p/968219#M48670</link>
      <description>Thanks!</description>
      <pubDate>Thu, 05 Jun 2025 04:41:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Randomized-block-design-and-meaning-of-LSMEAN-STDERR/m-p/968219#M48670</guid>
      <dc:creator>gorandomwalk24</dc:creator>
      <dc:date>2025-06-05T04:41:40Z</dc:date>
    </item>
  </channel>
</rss>

