<?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: Interaction plot in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Interaction-plot/m-p/925170#M41537</link>
    <description>Check &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt; blogs:&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2019/05/30/visualize-interaction-effects-regression.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2019/05/30/visualize-interaction-effects-regression.html&lt;/A&gt;&lt;BR /&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;BR /&gt;</description>
    <pubDate>Mon, 22 Apr 2024 01:15:54 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-04-22T01:15:54Z</dc:date>
    <item>
      <title>Interaction plot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interaction-plot/m-p/925167#M41536</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello All, &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am having difficulty with an interaction plot.&amp;nbsp; I&amp;nbsp;&lt;/SPAN&gt;am trying to see if there is a difference in the change in pulmonary function in people with diabetes vs those without over, a 10 year time period.&amp;nbsp; I wrote this to calculate the change.&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;data working4;
	set working3; 
	change_fev1pp = fev1pp_Post_p3 - fev1pp_Post_p1;
	change_fev1_FVC = fev1_FVC_post_p3 - Fev1_FVC_post_p1;
	run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I used proc glm to give me the type III table and the interaction plot for change in fev1pp.&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;proc glm data=working4;
	class diabetes_P1(ref='No') finalgold_P1 (ref='GOLD 0');
	model change_fev1pp = diabetes_P1 finalgold_p1 diabetes_P1*finalgold_p1;
	lsmeans diabetes_P1 finalgold_p1 diabetes_P1*finalgold_p1 / pdiff;
	format finalgold_p1 baseline_gold_stage. diabetes_P1 diabetes_baseline.;
	run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get the type III table and an interaction plot.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kristiepauly_0-1713740240662.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95732i87ECBB5894490624/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kristiepauly_0-1713740240662.png" alt="kristiepauly_0-1713740240662.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I need this same output but after I adjust for several variables (age, gender, bmi, high bp, high cholesterol, corticosteroid use, smoking status). I first tried to do this using Proc glm&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;proc glm data=working4;
	class diabetes_P1(ref='No') finalgold_P1(ref='GOLD 0') Gender(ref='1') BMI_P1(ref='Healthy')
	highbloodpres_P1(ref='No') highcholest_P1(ref='No')
  		cortsterinhal_P1(ref='No') cortsteroral_P1(ref='No') smokcignow_P1(ref='No');
	model change_fev1pp = diabetes_P1 finalgold_P1 diabetes_P1*finalgold_P1
	 BMI_P1 highbloodpres_P1 highcholest_P1 age_P1
  		cortsterinhal_P1 cortsteroral_P1 smokcignow_P1 gender;
	lsmeans diabetes_P1 finalgold_p1 diabetes_P1*finalgold_p1 / pdiff;
	format finalgold_P1 final_gold_stage. diabetes_P1 diabetes_final. BMI_P1 
  		BMI_group. highbloodpres_P1 highbloodpres_group. highcholest_P1 highcholest_group. smokcignow_P1 smokcignow_group.
  		cortsterinhal_P1 cortsterinhal_group. cortsteroral_P1 cortsteroral_group.;
	run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and I get the type III table but not the interaction plot. Is this interaction plot not possible when including variables I'm adjusting for or did I do it wrong?&amp;nbsp; Is there a better visual representation to show the change in fev1pp by GOLD stage over 10 years time in people with diabetes vs without?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also tried to adjust for the variables in proc logistic, but that wasn't right either.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;proc logistic data=working4;
  	class diabetes_P1 (ref ='No') finalgold_P1 (ref='GOLD 0') race (ref='1') Gender(ref='1') BMI_P3(ref='Healthy')
	highbloodpres_P3(ref='No') highcholest_P3(ref='No') 
  		cortsterinhal_P3(ref='No') cortsteroral_P3(ref='No') smokcignow_P3(ref='No');
  	model change_fev1pp = diabetes_P1 finalgold_p1 diabetes_P1*finalgold_p1
  		age_P3  BMI_P3 highbloodpres_P3 highcholest_P3
  		cortsterinhal_P3 cortsteroral_P3 smokcignow_P3 gender/ link=glogit;
  		lsmeans diabetes_P1 finalgold_p1 diabetes_P1*finalgold_p1 / pdiff;
  	format finalgold_p1 final_gold_stage. diabetes_P1 diabetes_baseline. BMI_P3 
  		BMI_group. highbloodpres_P3 highbloodpres_group. highcholest_P3 highcholest_group. smokcignow_P3 smokcignow_group.
  		cortsterinhal_P3 cortsterinhal_group. cortsteroral_P3 cortsteroral_group. finalgold_P3 Baseline_GOLD_Stage.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get this error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; ERROR: Computations are terminated because the number of response levels, 614, exceeds MAXRESPONSELEVELS=100.
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: There were 2864 observations read from the data set WORK.WORKING4.
 NOTE: PROCEDURE LOGISTIC used (Total process time):
       real time           0.19 seconds
       user cpu time       0.17 seconds
       system cpu time     0.02 seconds
       memory              33575.15k
       OS Memory           61600.00k
       Timestamp           04/21/2024 10:06:27 PM
       Step Count                        525  Switch Count  0
       Page Faults                       0
       Page Reclaims                     8318
       Page Swaps                        0
       Voluntary Context Switches        0
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           40
       
 81         
 82         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/PRE&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 22:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interaction-plot/m-p/925167#M41536</guid>
      <dc:creator>kristiepauly</dc:creator>
      <dc:date>2024-04-21T22:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction plot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interaction-plot/m-p/925170#M41537</link>
      <description>Check &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt; blogs:&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2019/05/30/visualize-interaction-effects-regression.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2019/05/30/visualize-interaction-effects-regression.html&lt;/A&gt;&lt;BR /&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;BR /&gt;</description>
      <pubDate>Mon, 22 Apr 2024 01:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interaction-plot/m-p/925170#M41537</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-04-22T01:15:54Z</dc:date>
    </item>
  </channel>
</rss>

