<?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: Calculating Slopes and Slope difference for a categorical-continuous-continuous categorical vari in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Calculating-Slopes-and-Slope-difference-for-a-categorical/m-p/560091#M10424</link>
    <description>&lt;P&gt;The SOLUTION option in MODEL statement of PROC MIXED will provide the slopes.&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2019 11:21:27 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-05-20T11:21:27Z</dc:date>
    <item>
      <title>Calculating Slopes and Slope difference for a categorical-continuous-continuous categorical variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Calculating-Slopes-and-Slope-difference-for-a-categorical/m-p/560034#M10414</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using an ecological assessment design (where people report their negative affect and social interaction every three hours each day across 5 days of the week), I am trying to calculate's participants' hourly experience of Negative Affect (NA) when interacting with family members compared to No interaction (FamilyInteraction: categorical var).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to see how trait levels of neuroticism and extraversion may further explain this relationship so I am using a&amp;nbsp; three-way interaction with a dichotomous variable (FamilyInteraction) and two continuous variables (neuroticism and extraversion).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, the only way I have figured out a way to calculate the simple slopes and slope contrast is by using proc plm and using the&amp;nbsp;&lt;FONT color="#000000"&gt;lsmestimate command. But in order to use this syntax, I have to make one of the personality vars into a categorical variable. If I want to keep both of my personality variables as continuous variables, what syntax code can I use?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Below purpose syntax is the main model of the analysis&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000"&gt;proc mixed noclprint covtest ; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;class ID FamilyInteraction;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;model NA= FamilyInteraction|Neuro|Extraversion/ solution ddfm = bw;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;RANDOM intercept / SUBJECT=Day;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;RANDOM intercept / SUBJECT=ID(Hour);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;store Save;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;proc plm noclprint restore=Alonea;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;effectplot interaction (x=FamilyInteractionsliceby=Neuro) / at(Extra=1.0741531 1.9140935) clm connect; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*&lt;FONT color="#000000"&gt;Below syntax in blue the way I would calculate the slopes &amp;amp; slope differences if one of the personality traits (Neuro) is made into a categorical variable and used in the proc plm lsmestimate command.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#00CCFF"&gt;proc plm noclprint restore=Alonea;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#00CCFF"&gt;lsmestimate C1r*LonelyCat 'No Fam-Yes Fam, Low Neuro, Extra=Low' [1, 1 1] [-1, 2 1],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#00CCFF"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'No Fam-Yes Fam, High Neuro, Extra=Low' [1, 1 2] [-1, 2 2] / e adj=bon at&amp;nbsp; Extra=1.0741531;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#00CCFF"&gt;lsmestimate C1r*LonelyCat 'No Fam-Yes Fam, Low Neuro, Extra=High' [1, 1 1] [-1, 2 1],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#00CCFF"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'No Fam-Yes Fam, High Neuro, Extra=High' [1, 1 2] [-1, 2 2] / e adj=bon at Extra=1.9140935; run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#00CCFF"&gt;proc plm noclprint restore=Alonea;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#00CCFF"&gt;lsmestimate FamilyInteraction*Neuro' diff No Fam-Yes Fam, LowNeuro- HighNeuro, Extra=Low' [1, 1 1] [-1, 2 1] [-1, 1 2] [1, 2 2] / e at Extra=1.0741531 joint;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#00CCFF"&gt;lsmestimate FamilyInteraction*Neuro' diff No Fam-Yes Fam, LowNeuro- HighNeuro, Extra=High' [1, 1 1] [-1, 2 1] [-1, 1 2] [1, 2 2] / e at Extra=1.9140935 joint;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#00CCFF"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate any help I can get and please let me know if I can further clarify anything!&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 08:16:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Calculating-Slopes-and-Slope-difference-for-a-categorical/m-p/560034#M10414</guid>
      <dc:creator>joannahh</dc:creator>
      <dc:date>2019-05-20T08:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Slopes and Slope difference for a categorical-continuous-continuous categorical vari</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Calculating-Slopes-and-Slope-difference-for-a-categorical/m-p/560091#M10424</link>
      <description>&lt;P&gt;The SOLUTION option in MODEL statement of PROC MIXED will provide the slopes.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 11:21:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Calculating-Slopes-and-Slope-difference-for-a-categorical/m-p/560091#M10424</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-05-20T11:21:27Z</dc:date>
    </item>
  </channel>
</rss>

