<?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: Trying to recreate linear mixed models and corresponding graphs in SAS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/936405#M46697</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/467187"&gt;@gdr1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Rick,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the advice. When you say treat the variables as continuous in SAS, do you mean input them all in the model statement even if I inputted them in the class statement?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It means: put the continuous variables in the model statement and NOT in the class statement.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jul 2024 18:17:22 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2024-07-19T18:17:22Z</dc:date>
    <item>
      <title>Trying to recreate linear mixed models and corresponding graphs in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/935459#M46633</link>
      <description>&lt;P&gt;Hello SAS community!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am very new to SAS and I have used R to run some linear mixed models. I now have to run the exact same in SAS but I have a few questions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;*For context, I am looking at interest variables to see the level of interest in using herbs and spices (interest1 variable) before and after (time variable) watching short and long (randomization variable) nutrition videos.*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) After running this model in R using the code below, I tried to run it in SAS. I am not sure if this code is right, but the p values aren't the same (in R and in SAS) and some significant variables in R are not significant in SAS. Does anyone have recommendations on how to correct my code in SAS so I am able to get the same outputs in both softwares?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gdr1_3-1720704506853.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98312i318B58C6282213F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gdr1_3-1720704506853.png" alt="gdr1_3-1720704506853.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc mixed data=results.cormick;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;class record_id education time income randomization;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;model interest1=time randomization age education sex income time*randomization /solution;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;random record_id;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;repeated /subject=record_id type=un;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Also, I am not sure which p-values I should be reporting from these two tables. Does anyone have recommendations?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gdr1_1-1720704256081.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98310iE3B6A6B3A118DED2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gdr1_1-1720704256081.png" alt="gdr1_1-1720704256081.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gdr1_2-1720704290791.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98311iE57FE12DC53E4DA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gdr1_2-1720704290791.png" alt="gdr1_2-1720704290791.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3) I am unable to get these graphs in SAS, does anyone know what code I could use?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gdr1_4-1720704671203.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98313iE8D62456301C85F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gdr1_4-1720704671203.png" alt="gdr1_4-1720704671203.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 13:31:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/935459#M46633</guid>
      <dc:creator>gdr1</dc:creator>
      <dc:date>2024-07-11T13:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to recreate linear mixed models and corresponding graphs in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/935535#M46634</link>
      <description>&lt;P&gt;Check &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt; blogs:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2016/06/22/sas-effectplot-statement.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2016/06/22/sas-effectplot-statement.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=sashelp.heart(obs=1000);
class bp_status sex status;
model weight=height sex status/s;
random int/subject=bp_status;
/*repeated /subject=bp_status type=un;*/
store out=mixedmodel;
run;
proc plm source=mixedmodel;
   effectplot INTERACTION(x=sex  sliceby=status /*plotby=CigsPerDay*/ )/limits connect;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1720749255255.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98329i9B1DA8C6413F8E9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1720749255255.png" alt="Ksharp_0-1720749255255.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 01:54:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/935535#M46634</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-07-12T01:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to recreate linear mixed models and corresponding graphs in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/935557#M46635</link>
      <description>&lt;P&gt;Look at the R table of parameter estimates. The R model appears to treat all variables as continuous, whereas in SAS you are treating many variables as factors. Resolve that issue first or you'll never get the same estimates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I suspect you want to add Sex to the CLASS statement so that the Sex variable is treated as a categorical variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 09:42:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/935557#M46635</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2024-07-12T09:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to recreate linear mixed models and corresponding graphs in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/936404#M46696</link>
      <description>&lt;P&gt;Hi Rick,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the advice. When you say treat the variables as continuous in SAS, do you mean input them all in the model statement even if I inputted them in the class statement?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 17:38:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/936404#M46696</guid>
      <dc:creator>gdr1</dc:creator>
      <dc:date>2024-07-19T17:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to recreate linear mixed models and corresponding graphs in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/936405#M46697</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/467187"&gt;@gdr1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Rick,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the advice. When you say treat the variables as continuous in SAS, do you mean input them all in the model statement even if I inputted them in the class statement?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It means: put the continuous variables in the model statement and NOT in the class statement.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 18:17:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/936405#M46697</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-07-19T18:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to recreate linear mixed models and corresponding graphs in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/936409#M46698</link>
      <description>&lt;P&gt;I think&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;is saying you need to specify the same model in both R and SAS. As stated by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;,&amp;nbsp;one way to do that is to treat all of the predictors in your SAS model as continuous by specifying them in the model statement and not the class statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other way is to treat the class variables from the SAS model as factors in your R model. That is:&lt;/P&gt;
&lt;PRE&gt;m1 &amp;lt;- lmer(interest1 ~ time*randomization + age + factor(education) + sex + factor(income) + (1|record_id)&lt;/PRE&gt;
&lt;P&gt;The choice will depend on how education and income are coded, and whether it is reasonable to assume a linear relationship between those variables and the model outcome. Treating those variables as categorical does not require that kind of assumption but will usually decrease the power of statistical tests (i.e., you will get higher p-values) compared to treating those variables as continuous.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 18:55:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/936409#M46698</guid>
      <dc:creator>Mike_N</dc:creator>
      <dc:date>2024-07-19T18:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to recreate linear mixed models and corresponding graphs in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/936413#M46699</link>
      <description>&lt;P&gt;Thank you! It worked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still unable to get the graphs. Do you have any recommendations on how to get the graphs? When I run the bottom code, I get the fixed effects but then the plm procedure doesn't work. "time" and "randomization" are not continuous variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gdr1_0-1721415359939.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98543i709C958DAF03B653/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gdr1_0-1721415359939.png" alt="gdr1_0-1721415359939.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gdr1_1-1721415382172.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98544iDD6793503AC859D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gdr1_1-1721415382172.png" alt="gdr1_1-1721415382172.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gdr1_2-1721415475760.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98545iE0160E14DE7C17D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gdr1_2-1721415475760.png" alt="gdr1_2-1721415475760.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 18:58:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/936413#M46699</guid>
      <dc:creator>gdr1</dc:creator>
      <dc:date>2024-07-19T18:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to recreate linear mixed models and corresponding graphs in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/936420#M46700</link>
      <description>&lt;P&gt;I think you want to use &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_plm_syntax03.htm" target="_self"&gt;CONTOURPLOT&lt;/A&gt; instead of INTERACTION&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 19:22:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/936420#M46700</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-07-19T19:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to recreate linear mixed models and corresponding graphs in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/936428#M46701</link>
      <description>&lt;P&gt;Thank you! I added the class statement back in and it makes more sense now since education, sex and income are categorical variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still unable to get the graphs. Currently getting this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gdr1_0-1721418922611.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98549i3544AF832247B74C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gdr1_0-1721418922611.png" alt="gdr1_0-1721418922611.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 19:55:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/936428#M46701</guid>
      <dc:creator>gdr1</dc:creator>
      <dc:date>2024-07-19T19:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to recreate linear mixed models and corresponding graphs in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/936431#M46702</link>
      <description>&lt;P&gt;Use CONTOUR (you have a typo)&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 19:59:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/936431#M46702</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2024-07-19T19:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to recreate linear mixed models and corresponding graphs in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/936620#M46725</link>
      <description>&lt;P&gt;Thanks Rick.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still getting an error after I run this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gdr1_0-1721664414532.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98584iF38AAC4A658F9EB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gdr1_0-1721664414532.png" alt="gdr1_0-1721664414532.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gdr1_1-1721664459985.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98585i3101058D64EBE389/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gdr1_1-1721664459985.png" alt="gdr1_1-1721664459985.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 16:07:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/936620#M46725</guid>
      <dc:creator>gdr1</dc:creator>
      <dc:date>2024-07-22T16:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to recreate linear mixed models and corresponding graphs in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/936621#M46726</link>
      <description>&lt;P&gt;There is no SLICEBY= for contour plots. You need a Y= option however.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or maybe the whole idea of a CONTOUR plot is going down the wrong path. Somehow, this won't get the plots you showed from R. So tell us, using the SAS variable names, what plots you want, what is on the x- axis, what is on the y-axis, and what lines or curves should be drawn on the plot?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, what is wrong with the solution from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;??&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 16:36:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/936621#M46726</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-07-22T16:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to recreate linear mixed models and corresponding graphs in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/937052#M46756</link>
      <description>&lt;P&gt;When trying ksharps solution, I get the below error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gdr1_0-1721848637134.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98706iBD6CE9A392DD4F87/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gdr1_0-1721848637134.png" alt="gdr1_0-1721848637134.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is to create the below plot:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gdr1_1-1721848718809.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98707iD48B67689D17D462/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gdr1_1-1721848718809.png" alt="gdr1_1-1721848718809.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;where randomization = short or long videos, time = pre or post, and the lines across the graph are the mean values of the variable of interest (interest1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far&amp;nbsp;I used the code below :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gdr1_2-1721848901588.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98708i10CDA202DAD112CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gdr1_2-1721848901588.png" alt="gdr1_2-1721848901588.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and got the fixed effect model results:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gdr1_3-1721848935027.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98709i3BE72CD4EE9B5A36/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gdr1_3-1721848935027.png" alt="gdr1_3-1721848935027.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am just trying to create the graphs now . Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 19:23:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/937052#M46756</guid>
      <dc:creator>gdr1</dc:creator>
      <dc:date>2024-07-24T19:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to recreate linear mixed models and corresponding graphs in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/937053#M46757</link>
      <description>&lt;P&gt;This is the source of all of your problems in this thread. You need to put RANDOMIZATION into the CLASS statement of PROC MIXED, and also into the model statement.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 19:37:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/937053#M46757</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-07-24T19:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to recreate linear mixed models and corresponding graphs in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/937061#M46758</link>
      <description>&lt;P&gt;Unfortunately, I am getting this Java error now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gdr1_0-1721852991616.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98710iE8BA3F2106EED2A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gdr1_0-1721852991616.png" alt="gdr1_0-1721852991616.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, can proc gplot be used instead of proc plm?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 20:32:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/937061#M46758</guid>
      <dc:creator>gdr1</dc:creator>
      <dc:date>2024-07-24T20:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to recreate linear mixed models and corresponding graphs in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/937062#M46759</link>
      <description>&lt;P&gt;I would contact SAS Tech Support for the Java Machine error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use PROC SGPLOT, but you have to obtain predicted values somehow, to plot.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 20:47:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/937062#M46759</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-07-24T20:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to recreate linear mixed models and corresponding graphs in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/937071#M46763</link>
      <description>You need to post some real data, so we can test the code and find where is wrong.&lt;BR /&gt;&lt;BR /&gt;Also calling &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt;</description>
      <pubDate>Thu, 25 Jul 2024 01:27:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-recreate-linear-mixed-models-and-corresponding-graphs/m-p/937071#M46763</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-07-25T01:27:22Z</dc:date>
    </item>
  </channel>
</rss>

