<?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: Proc GLM looking at effect modification in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-GLM-looking-at-effect-modification/m-p/922936#M363381</link>
    <description>&lt;P&gt;&lt;STRONG&gt;DUPLICATE THREAD. DO NOT REPLY HERE.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reply at&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Proc-glm-looking-for-effect-modification/td-p/922881/jump-to/first-unread-message" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Proc-glm-looking-for-effect-modification/td-p/922881/jump-to/first-unread-message&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2024 10:32:25 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2024-04-04T10:32:25Z</dc:date>
    <item>
      <title>Proc GLM looking at effect modification</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-GLM-looking-at-effect-modification/m-p/922878#M363365</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My data set is looking at diabetes and pulmonary function over time.&amp;nbsp; I need to determine whether the GOLD (&lt;EM&gt;Global Initiative for Chronic Obstructive Lung Disease)&amp;nbsp;&lt;/EM&gt;stage (-1 - 4) modifies the effect of pulmonary function.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added this code to calculate the change in pulmonary function at visit 3 (....._p3) minus the baseline visit (...._P1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data working4;
	set working3; 
	change_fev1 = 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;&lt;SPAN&gt;I then used proc glm to try to determine EM.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc GLM data=working4; 
	class finalgold_P3 (ref='GOLD 0');
	model finalgold_p3 = change_fev1 change_fev1_FVC; ***I don't think I need this code....finalgold_p3*change_fev1 finalgold_p3*change_fev1_FVC;
	lsmeans finalgold_P3 change_fev1 change_fev1_FVC finalgold_P3*change_fev1_FVC finalgold_P3*change_fev1/ pdiff;
	format finalgold_p3 final_gold_stage.;
	run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;and get this error message:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 68         
 69         Proc GLM data=working4;
 70         class finalgold_P3 (ref='GOLD 0');
 71         model finalgold_p3 = change_fev1 change_fev1_FVC finalgold_P3; * i don't think i need this here..finalgold_p3*change_fev1 finalgold_p3*change_fev1_FVC;
 72         lsmeans finalgold_P3 change_fev1 change_fev1_FVC finalgold_P3*change_fev1_FVC finalgold_P3*change_fev1/ pdiff;
 ERROR: Only CLASS variables allowed in this effect.
 NOTE: The previous statement has been deleted.
 73         format finalgold_p3 final_gold_stage.;
 74         run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;If I use the same code but delete "finalgold_P3" from the right side of the = sign in the model statement, I get this error message:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 68         
 69         Proc glm data=working4;
 70         class finalgold_P3 (ref='GOLD 0');
 71         model finalgold_p3 = change_fev1 change_fev1_FVC;
 72         lsmeans finalgold_p3 change_fev1 change_fev1_FVC finalgold_P3*change_fev1_FVC finalgold_P3*change_fev1/pdiff;
 ERROR: Effects used in the LSMEANS statement must have appeared previously in the MODEL statement.
 NOTE: The previous statement has been deleted.
 73         format finalgold_P3 final_gold_stage.;
 74         run;
 
 75         
 76         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 
 75         
 76         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Any suggestions are greatly appreciated.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 01:37:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-GLM-looking-at-effect-modification/m-p/922878#M363365</guid>
      <dc:creator>kristiepauly</dc:creator>
      <dc:date>2024-04-04T01:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GLM looking at effect modification</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-GLM-looking-at-effect-modification/m-p/922936#M363381</link>
      <description>&lt;P&gt;&lt;STRONG&gt;DUPLICATE THREAD. DO NOT REPLY HERE.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reply at&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Proc-glm-looking-for-effect-modification/td-p/922881/jump-to/first-unread-message" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Proc-glm-looking-for-effect-modification/td-p/922881/jump-to/first-unread-message&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 10:32:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-GLM-looking-at-effect-modification/m-p/922936#M363381</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-04-04T10:32:25Z</dc:date>
    </item>
  </channel>
</rss>

