<?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: LSD in Proc Mixed in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/102719#M28765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks and well noted. The 5 checks are all identical, but some missing data. Then in this case, it makes sense to have different LSDs. many thanks again. Gaston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 May 2013 21:57:30 GMT</pubDate>
    <dc:creator>gaston</dc:creator>
    <dc:date>2013-05-18T21:57:30Z</dc:date>
    <item>
      <title>LSD in Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/102711#M28757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone help me update this code for SAS 9.2 or suggest better.&amp;nbsp; I found it on the web in Google Groups from 1998.&lt;/P&gt;&lt;P&gt;*****************&lt;/P&gt;&lt;P style="margin: 1em 0px; color: #222222; font-family: Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;Proc mixed doesn't compute lsd directly, but it can be done using info. generated by the make statement. Look at this example:&lt;/P&gt;&lt;P style="margin: 1em 0px; color: #222222; font-family: Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;proc mixed;&lt;BR /&gt;...&lt;BR /&gt;&amp;nbsp; make "diffs" out=diffs;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P style="margin: 1em 0px; color: #222222; font-family: Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;data calc_lsd;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lsd=_se_*tinv(1-.05/2,_df_);&lt;/P&gt;&lt;P style="margin: 1em 0px; color: #222222; font-family: Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;**************&lt;/P&gt;&lt;P style="margin: 1em 0px; color: #222222; font-family: Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="margin: 1em 0px; color: #222222; font-family: Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 22:39:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/102711#M28757</guid>
      <dc:creator>cken</dc:creator>
      <dc:date>2013-02-07T22:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: LSD in Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/102712#M28758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Replace the old make statement with an ODS OUTPUT statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods output diffs=diffs;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data calc_lsd;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set diffs;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lsd=stderr*tinv(1 -0.5/2,df);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 14:26:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/102712#M28758</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-02-11T14:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: LSD in Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/102713#M28759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much!&amp;nbsp; &lt;/P&gt;&lt;P&gt;The program ran the code, but produced no output.&lt;/P&gt;&lt;P&gt;Can you provide code to generate output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 17:43:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/102713#M28759</guid>
      <dc:creator>cken</dc:creator>
      <dc:date>2013-02-11T17:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: LSD in Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/102714#M28760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a proc print.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=calc_lsd;&lt;/P&gt;&lt;P&gt;var lsd estimate stderr df;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 12:56:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/102714#M28760</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-02-12T12:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: LSD in Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/102715#M28761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for this.&lt;/P&gt;&lt;P&gt;Different values of LSD have been printed. which one to consider. The min of all the LSD?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 13:20:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/102715#M28761</guid>
      <dc:creator>gaston</dc:creator>
      <dc:date>2013-05-15T13:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: LSD in Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/102716#M28762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably have different values for the standard error of the differences, as a result of unequal observations in the effects you are comparing.&amp;nbsp; Consequently, the LSD will differ from case to case.&amp;nbsp; Sharing some more code, especially your PROC MIXED code, and some info on the design could help clarify this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 14:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/102716#M28762</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-05-16T14:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: LSD in Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/102717#M28763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Steve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is the dode:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc mixed;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class block variety;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model yield=variety;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random block;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lsmeans variety/pdiff;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods output Diffs=d;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an augmented design where 200 varieties and 5 checks have been tested in an Augmented randomized complete block design. The 200 varieties have been unreplicated in 20 blocks of 10 plots each. Each block has been completed by the 5 checks. Hence a total of 300 plots (200+5*20). Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gaston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 13:52:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/102717#M28763</guid>
      <dc:creator>gaston</dc:creator>
      <dc:date>2013-05-17T13:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: LSD in Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/102718#M28764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So in the lsmeans table, are the standard errors of the varieties all equal?&amp;nbsp; If not, then there is probably some missing data (variety within a block), so that the standard error of the difference is not constant.&amp;nbsp; Also, are the 5 checks all identical check varieties?&amp;nbsp; This also leads to unequal replication, unequal standard errors of the differences, and consequently, different LSDs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, in a design of this type, block by variety is often included, since not all varieties are seen in each block, but the check varieties are, and this may represent a better source of residual error.&amp;nbsp; Emphasis on the word may, there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 14:44:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/102718#M28764</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-05-17T14:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: LSD in Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/102719#M28765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks and well noted. The 5 checks are all identical, but some missing data. Then in this case, it makes sense to have different LSDs. many thanks again. Gaston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 May 2013 21:57:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/102719#M28765</guid>
      <dc:creator>gaston</dc:creator>
      <dc:date>2013-05-18T21:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: LSD in Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/236202#M55206</link>
      <description>&lt;P&gt;&lt;SPAN&gt;hi is the above code used for LSD at 0.05 or 0.1 ? I would like to obtain the LSD value at 0.1 thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 14:39:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/236202#M55206</guid>
      <dc:creator>ALSU</dc:creator>
      <dc:date>2015-11-24T14:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: LSD in Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/237024#M55297</link>
      <description>&lt;P&gt;In the equation&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; lsd=_se_*tinv(1-.05/2,_df_);&lt;/P&gt;
&lt;P&gt;the value 0.05 represents the significance level, often denote by "alpha." So the answer to your question is that the LSD is for alpha=0.05. Use alpha=0.1 to get the LSD value that you are asking for.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2015 18:00:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/237024#M55297</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-11-30T18:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: LSD in Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/250659#M56608</link>
      <description>&lt;P&gt;Hi Steve, Please is the 0.05 in the lsd equation for 5% significant level?, can it be changed to lsd=stderr*tinv(1-0.1/2,df). Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 17:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/250659#M56608</guid>
      <dc:creator>Olanike</dc:creator>
      <dc:date>2016-02-17T17:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: LSD in Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/250828#M56626</link>
      <description>&lt;P&gt;See&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS﻿&lt;/a&gt;'s post right above. &amp;nbsp;The answers to your questions are yes and yes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 14:47:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/250828#M56626</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-02-18T14:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: LSD in Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/250886#M56637</link>
      <description>Thanks!!!&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Thu, 18 Feb 2016 16:56:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/250886#M56637</guid>
      <dc:creator>Olanike</dc:creator>
      <dc:date>2016-02-18T16:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: LSD in Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/767425#M81008</link>
      <description>&lt;P&gt;I want to estimate LSD, can you tell me what is wrong ?&lt;/P&gt;&lt;P&gt;ods output diffs=ppp;&lt;BR /&gt;data calc_lsd;&lt;BR /&gt;set diffs;&lt;BR /&gt;lsd=stderr*tinv(1 -0.05/2,df);&lt;BR /&gt;proc print data=calc_lsd;&lt;BR /&gt;var lsd stderr df;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;For some reason that I ignore SAS indicates that the file diffs can not be created&lt;/P&gt;&lt;P&gt;Tkanks !!!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 14:16:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/767425#M81008</guid>
      <dc:creator>alimon</dc:creator>
      <dc:date>2021-09-13T14:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: LSD in Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/767442#M81009</link>
      <description>&lt;P&gt;1. In the future, please don't reopen a thread from 5 years ago. Open your own thread if you have a question.&lt;/P&gt;
&lt;P&gt;2. Always include the SAS log so that we know what you mean by "SAS indicates that the file diffs can not be created".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Presumably, you are getting a warning such as&amp;nbsp;&lt;BR /&gt;WARNING: Output 'diffs' was not created.&lt;BR /&gt;This warning appears because you are not displaying a table called 'diffs'. Consequently, your ODS OUTPUT statement cannot find a table from which to create a data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are directly creating a SAS data set 'calc_lsd' that contains the information you need. I think you can simply delete the ODS OUTPUT statement.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 15:23:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/767442#M81009</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-09-13T15:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: LSD in Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/767509#M81010</link>
      <description>&lt;P&gt;Thanks a lot !&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 18:22:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LSD-in-Proc-Mixed/m-p/767509#M81010</guid>
      <dc:creator>alimon</dc:creator>
      <dc:date>2021-09-13T18:22:27Z</dc:date>
    </item>
  </channel>
</rss>

