<?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 Code running - BUT only shows model info in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Code-running-BUT-only-shows-model-info/m-p/956094#M2523</link>
    <description>&lt;P&gt;Hello, I am trying to run the following data (see part of the data), and the output is just showing the model information. Can you please let me know what is wrong. Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;data exp;&lt;/DIV&gt;&lt;DIV&gt;input replicate method cow block intake;&lt;/DIV&gt;&lt;DIV&gt;cards;&lt;/DIV&gt;&lt;DIV&gt;1 GF 1723 2 24.8&lt;BR /&gt;1 OW 1723 2 24.7&lt;BR /&gt;1 RC 1723 2 24.2&lt;BR /&gt;1 GF 2334 1 26.2&lt;BR /&gt;1 OW 2334 1 25.2&lt;BR /&gt;1 RC 2334 1 24.9&lt;BR /&gt;1 GF 2341 3 22.1&lt;BR /&gt;1 OW 2341 3 23.8&lt;BR /&gt;1 RC 2341 3 20.9&lt;BR /&gt;1 GF 2351 2 23.1&lt;BR /&gt;1 OW 2351 2 .&lt;BR /&gt;1 RC 2351 2 .&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;proc mixed;&lt;/DIV&gt;&lt;DIV&gt;class replicate method cow block;&lt;/DIV&gt;&lt;DIV&gt;model intake = replicate method block/ddfm=KENWARDROGER;&lt;/DIV&gt;&lt;DIV&gt;random int/subject = cow;&lt;/DIV&gt;&lt;DIV&gt;lsmeans method/pdiff adjust=tukey;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This is the only output=&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;TABLE border="0" cellspacing="1" cellpadding="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;The SAS System&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;DIV class=""&gt;The Mixed Procedure&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Model InformationData SetDependent VariableCovariance StructureSubject EffectEstimation MethodResidual Variance MethodFixed Effects SE MethodDegrees of Freedom Method &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;WORK.EXP865&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;dmi&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Diagonal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cow&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;REML&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Profile&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Kenward-Roger&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Kenward-Roger&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 14 Jan 2025 18:15:02 GMT</pubDate>
    <dc:creator>dcreyesg</dc:creator>
    <dc:date>2025-01-14T18:15:02Z</dc:date>
    <item>
      <title>Code running - BUT only shows model info</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Code-running-BUT-only-shows-model-info/m-p/956094#M2523</link>
      <description>&lt;P&gt;Hello, I am trying to run the following data (see part of the data), and the output is just showing the model information. Can you please let me know what is wrong. Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;data exp;&lt;/DIV&gt;&lt;DIV&gt;input replicate method cow block intake;&lt;/DIV&gt;&lt;DIV&gt;cards;&lt;/DIV&gt;&lt;DIV&gt;1 GF 1723 2 24.8&lt;BR /&gt;1 OW 1723 2 24.7&lt;BR /&gt;1 RC 1723 2 24.2&lt;BR /&gt;1 GF 2334 1 26.2&lt;BR /&gt;1 OW 2334 1 25.2&lt;BR /&gt;1 RC 2334 1 24.9&lt;BR /&gt;1 GF 2341 3 22.1&lt;BR /&gt;1 OW 2341 3 23.8&lt;BR /&gt;1 RC 2341 3 20.9&lt;BR /&gt;1 GF 2351 2 23.1&lt;BR /&gt;1 OW 2351 2 .&lt;BR /&gt;1 RC 2351 2 .&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;proc mixed;&lt;/DIV&gt;&lt;DIV&gt;class replicate method cow block;&lt;/DIV&gt;&lt;DIV&gt;model intake = replicate method block/ddfm=KENWARDROGER;&lt;/DIV&gt;&lt;DIV&gt;random int/subject = cow;&lt;/DIV&gt;&lt;DIV&gt;lsmeans method/pdiff adjust=tukey;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This is the only output=&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;TABLE border="0" cellspacing="1" cellpadding="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;The SAS System&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;DIV class=""&gt;The Mixed Procedure&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Model InformationData SetDependent VariableCovariance StructureSubject EffectEstimation MethodResidual Variance MethodFixed Effects SE MethodDegrees of Freedom Method &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;WORK.EXP865&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;dmi&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Diagonal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cow&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;REML&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Profile&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Kenward-Roger&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Kenward-Roger&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Jan 2025 18:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Code-running-BUT-only-shows-model-info/m-p/956094#M2523</guid>
      <dc:creator>dcreyesg</dc:creator>
      <dc:date>2025-01-14T18:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Code running - BUT only shows model info</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Code-running-BUT-only-shows-model-info/m-p/956096#M2524</link>
      <description>Hi, please post your log for us as well, both for the DATA step and PROC MIXED. Thank you.</description>
      <pubDate>Tue, 14 Jan 2025 18:20:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Code-running-BUT-only-shows-model-info/m-p/956096#M2524</guid>
      <dc:creator>JackieJ_SAS</dc:creator>
      <dc:date>2025-01-14T18:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Code running - BUT only shows model info</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Code-running-BUT-only-shows-model-info/m-p/956097#M2525</link>
      <description>&lt;P&gt;Hi! This is my log =&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: With DDFM=SATTERTHWAITE or DDFM=KENWADROGER or DDFM=KENWADROGER2, unadjusted p-values in tests are based on the degrees of freedom specific to that comparison. P-values that are adjusted for multiplicity, however, are by default based on the denominator degrees of freedom for the Type 3 test of the fixed effect. If you specify the ADJDFE=ROW option in&lt;BR /&gt;the LSMEANS statement, the adjusted p-values take into account the row-wise degrees of&lt;BR /&gt;freedom.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ERROR: Invalid or missing data.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NOTE: PROCEDURE MIXED used (Total process time):&lt;BR /&gt;real time 1.00 seconds&lt;BR /&gt;cpu time 0.48 seconds&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 18:24:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Code-running-BUT-only-shows-model-info/m-p/956097#M2525</guid>
      <dc:creator>dcreyesg</dc:creator>
      <dc:date>2025-01-14T18:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Code running - BUT only shows model info</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Code-running-BUT-only-shows-model-info/m-p/956102#M2526</link>
      <description>&lt;P&gt;Hi, Thank you for the log. I also ran your code.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The issue is with your DATA step. The second variable in your INPUT statement, METHOD, take character values, but you haven't specified that in your code. Because of this, all the values of METHOD were missing in your output dataset. PROC MIXED throws out all observations with a missing value on ANY variable specified in the model. So- since METHOD is missing for all observations, PROC MIXED threw out all the all observations in your dataset and didn't run. &lt;BR /&gt;&lt;BR /&gt;Trying adding a $ after METHOD on the input statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input replicate method $ cow block intake;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In general, I would also add a semi-colon at the end of your DATA step and explicitly reference a dataset name when calling PROC MIXED. So:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data exp;
input replicate method $ cow block intake;
cards;
1 GF 1723 2 24.8
1 OW 1723 2 24.7
1 RC 1723 2 24.2
1 GF 2334 1 26.2
1 OW 2334 1 25.2
1 RC 2334 1 24.9
1 GF 2341 3 22.1
1 OW 2341 3 23.8
1 RC 2341 3 20.9
1 GF 2351 2 23.1
1 OW 2351 2 .
1 RC 2351 2 .
; 
 
proc mixed data=exp;
class replicate method cow block;
model intake = replicate method block/ddfm=KENWARDROGER;
random int/subject = cow;
lsmeans method/pdiff adjust=tukey;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Running this gives me output. Good luck!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 20:05:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Code-running-BUT-only-shows-model-info/m-p/956102#M2526</guid>
      <dc:creator>JackieJ_SAS</dc:creator>
      <dc:date>2025-01-14T20:05:37Z</dc:date>
    </item>
  </channel>
</rss>

