<?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 How to use PROC PLM with Categorical X and Continuous M in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-PLM-with-Categorical-X-and-Continuous-M/m-p/868533#M42937</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running a multivariate, multilevel PROC MIXED model with a combination of continuous, categorical, and spline variables (syntax below). I have observed a significant interaction between fobss_total_personmean (continuous) and TransitionRelat (categorical, 0/1). The way the data are interpreted, it makes the most sense to examine the categorical variable as the X and the continuous variable as the M. Based on the documentation I've been able to find though, I haven't been able to use PROC PLM to probe simple slopes or to actually plot the effects in this way. Is there any way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC MIXED data=work.import covtest noclprint method = ML; 
class fab400_id partner(ref="Yes") TransitionSingle(ref="Continuance of Singlehood OR In a Relationship") 
TransitionRelat(ref="Continuance of Relationship OR Being Single") GID_Male(ref="Gender2") dem06_L2(ref="Gender2"); 
model pss_sum = Age_T1 GID_male dem06_L2 visit partner Length2 TransitionSingle TransitionRelat Time mspss_total_personmean fobss_total_personmean 
partner*fobss_total_personmean Length2*fobss_total_personmean TransitionSingle*fobss_total_personmean TransitionRelat*fobss_total_personmean
Time*fobss_total_personmean /solution; 
random intercept visit / sub=fab400_id type=vc;
Repeated / Subject=fab400_id;
store pred1;
run;

proc plm restore=pred1;
estimate 'FOBS slope, Transition Relat 0' fobss_total_personmean 1 TransitionRelat*fobss_total_personmean 1 0,
'FOBS slope, Transition Relat 1' fobss_total_personmean 1 TransitionRelat*fobss_total_personmean 0 1 / e;
effectplot slicefit (x=fobss_total_personmean sliceby=TransitionRelat=0 1);
run;&lt;/PRE&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2023 21:27:30 GMT</pubDate>
    <dc:creator>madisonsmith</dc:creator>
    <dc:date>2023-04-06T21:27:30Z</dc:date>
    <item>
      <title>How to use PROC PLM with Categorical X and Continuous M</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-PLM-with-Categorical-X-and-Continuous-M/m-p/868533#M42937</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running a multivariate, multilevel PROC MIXED model with a combination of continuous, categorical, and spline variables (syntax below). I have observed a significant interaction between fobss_total_personmean (continuous) and TransitionRelat (categorical, 0/1). The way the data are interpreted, it makes the most sense to examine the categorical variable as the X and the continuous variable as the M. Based on the documentation I've been able to find though, I haven't been able to use PROC PLM to probe simple slopes or to actually plot the effects in this way. Is there any way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC MIXED data=work.import covtest noclprint method = ML; 
class fab400_id partner(ref="Yes") TransitionSingle(ref="Continuance of Singlehood OR In a Relationship") 
TransitionRelat(ref="Continuance of Relationship OR Being Single") GID_Male(ref="Gender2") dem06_L2(ref="Gender2"); 
model pss_sum = Age_T1 GID_male dem06_L2 visit partner Length2 TransitionSingle TransitionRelat Time mspss_total_personmean fobss_total_personmean 
partner*fobss_total_personmean Length2*fobss_total_personmean TransitionSingle*fobss_total_personmean TransitionRelat*fobss_total_personmean
Time*fobss_total_personmean /solution; 
random intercept visit / sub=fab400_id type=vc;
Repeated / Subject=fab400_id;
store pred1;
run;

proc plm restore=pred1;
estimate 'FOBS slope, Transition Relat 0' fobss_total_personmean 1 TransitionRelat*fobss_total_personmean 1 0,
'FOBS slope, Transition Relat 1' fobss_total_personmean 1 TransitionRelat*fobss_total_personmean 0 1 / e;
effectplot slicefit (x=fobss_total_personmean sliceby=TransitionRelat=0 1);
run;&lt;/PRE&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 21:27:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-PLM-with-Categorical-X-and-Continuous-M/m-p/868533#M42937</guid>
      <dc:creator>madisonsmith</dc:creator>
      <dc:date>2023-04-06T21:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PROC PLM with Categorical X and Continuous M</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-PLM-with-Categorical-X-and-Continuous-M/m-p/868637#M42949</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for not taking a deep dive into your question, but is this paper providing an answer?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="markedContent"&gt;&lt;SPAN&gt;Paper SAS1919-2015&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="markedContent"&gt;&lt;BR role="presentation" /&gt;&lt;SPAN&gt;Advanced Techniques for Fitting Mixed Models Using SAS/STAT&lt;/SPAN&gt;&lt;SPAN&gt;®&lt;/SPAN&gt; &lt;SPAN&gt;Software&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="markedContent"&gt;&lt;BR role="presentation" /&gt;&lt;SPAN&gt;Jill Tao, Kathleen Kiernan, and Phil Gibbs, SAS Institute Inc.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings15/SAS1919-2015.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings15/SAS1919-2015.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The paper has 25 matches on "PROC PLM"&lt;/P&gt;
&lt;P&gt;and is performing several post-fitting statistical analyses (with PROC PLM) on top of models fit with PROC MIXED.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR,&lt;BR /&gt;Koen&lt;/P&gt;
&lt;DIV id="ConnectiveDocSignExtentionInstalled" data-extension-version="1.0.4"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 Apr 2023 17:27:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-PLM-with-Categorical-X-and-Continuous-M/m-p/868637#M42949</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-04-07T17:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PROC PLM with Categorical X and Continuous M</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-PLM-with-Categorical-X-and-Continuous-M/m-p/868651#M42953</link>
      <description>That is a helpful article! But I don't think it fully addresses what I was wondering, because I get an error every time I try to specify my 0/1 variable as the X and to prove by values of my continuous moderator in PROC PLM.</description>
      <pubDate>Fri, 07 Apr 2023 18:15:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-PLM-with-Categorical-X-and-Continuous-M/m-p/868651#M42953</guid>
      <dc:creator>madisonsmith</dc:creator>
      <dc:date>2023-04-07T18:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PROC PLM with Categorical X and Continuous M</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-PLM-with-Categorical-X-and-Continuous-M/m-p/869116#M43010</link>
      <description>&lt;P&gt;What sort of error are you getting? That your ESTIMATE statement is reporting "Non-est" or is it something else that appears in the log? If it is the latter, please share all of your log relative to PROC PLM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 14:04:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-PLM-with-Categorical-X-and-Continuous-M/m-p/869116#M43010</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2023-04-11T14:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PROC PLM with Categorical X and Continuous M</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-PLM-with-Categorical-X-and-Continuous-M/m-p/869120#M43013</link>
      <description>&lt;P&gt;Yes, I am receiving a "non-est" error when I use the following syntax (with the latter values representing -1 SD, M, and +1 SD levels of fobss_total_personmean):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc plm restore=pred1;
estimate TransitionRelat 1 TransitionRelat*fobss_total_personmean 1.41,
TransitionRelat 1 TransitionRelat*fobss_total_personmean 2.65
TransitionRelat 1 TransitionRelat*fobss_total_personmean 3.89/ e;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Apr 2023 14:11:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-PLM-with-Categorical-X-and-Continuous-M/m-p/869120#M43013</guid>
      <dc:creator>madisonsmith</dc:creator>
      <dc:date>2023-04-11T14:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PROC PLM with Categorical X and Continuous M</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-PLM-with-Categorical-X-and-Continuous-M/m-p/869128#M43015</link>
      <description>&lt;P&gt;Not sure whether this is the case, but off the top of my head, I don't think this is the right syntax for the ESTIMATE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may have to shift to an LSMESTIMATE statement, where you can use the AT option to get results at different levels of a continuous variable. For instance try this, and see if it gives something close to what you want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc plm restore=pred1;
estimate TransitionRelat 1 /at fobss_total_personmean= 1.41,
TransitionRelat 1 /at fobss_total_personmean= 2.65
TransitionRelat 1 /at fobss_total_personmean= 3.89/ e;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This ought to give expected values at the three levels of your continuous variable for the first level of your categorical variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&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;</description>
      <pubDate>Tue, 11 Apr 2023 14:41:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-use-PROC-PLM-with-Categorical-X-and-Continuous-M/m-p/869128#M43015</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2023-04-11T14:41:09Z</dc:date>
    </item>
  </channel>
</rss>

