<?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 Interaction term in Poisson regression with PROC GENMOD in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-term-in-Poisson-regression-with-PROC-GENMOD/m-p/913505#M45336</link>
    <description>&lt;P&gt;This question is related to the thread at&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Interaction-term-in-modified-poisson-regression-with-proc-GENMOD/m-p/913505" target="_blank" rel="noopener"&gt;Re: Interaction term in modified poisson regression with proc GENMOD - SAS Support Communities&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I am trying to do the same thing&amp;nbsp;(i.e., using proc genmod to run an interaction analysis using relative risk regression with a binary outcome variable,&amp;nbsp;poisson error distribution and a log link). I'm not sure how to format the estimate statements to request risk ratios for each level of the variable interacting w/ the independent variable of interest (CIG6C - Never, former, current). Any ideas how to revise this code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod descending data=data_6;
	class idno 	
		reg_use (ref="No")
		race1c (ref="WHITE") 
		gender1 (ref="FEMALE") 
		income6 (ref="≤ $49999") 
		educ1 (ref="&amp;lt; Bachelor's degree") 
		CIG6C (ref="NEVER")
		/ param=glm
		;

model htn (ref="No") = reg_use age6c gender1 income6 educ1 race1c drinks_wk CIG6C pamvcm6c bmi6c tchol_hdl_ratio glucose6 htn_meds lipid_meds dm_meds totmed6 

reg_use*CIG6C
	
/ error=poisson  link=log;

/* "By replacing link=log with link=identity in the MODEL statement, multivariate-adjusted risk (prevalence) differences are obtained" */
	
repeated  subject=idno / type=ind;

/* 	The REPEATED statement in PROC GENMOD can also be used to obtain robust standard errors by specifying an independent correlation structure. */

/* Risk Ratios for each level of CIG6C */
/* I don't know how to write these statements... */

    estimate 'Risk Ratio for CIG6C Former' CIG6C 1 0 / exp;
    estimate 'Risk Ratio for CIG6C Current' CIG6C 0 1 / exp;

   	format 
 	htn yes_no_fmt.
 	reg_use 					yes_no_fmt.		
	gender1 					gender1f.
    	race1c 						race1c.
    	educ1 						educ1fmt.
    	income6 					income6fmt.
    	cig6c 						cig6cf.
    	htn							
   	 dyslipid					
   	 dm 							
   	 htn_meds
   	 lipid_meds	
    	dm_meds						yes_no_fmt.
    ;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jan 2024 13:44:29 GMT</pubDate>
    <dc:creator>_maldini_</dc:creator>
    <dc:date>2024-01-30T13:44:29Z</dc:date>
    <item>
      <title>Interaction term in Poisson regression with PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-term-in-Poisson-regression-with-PROC-GENMOD/m-p/913505#M45336</link>
      <description>&lt;P&gt;This question is related to the thread at&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Interaction-term-in-modified-poisson-regression-with-proc-GENMOD/m-p/913505" target="_blank" rel="noopener"&gt;Re: Interaction term in modified poisson regression with proc GENMOD - SAS Support Communities&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I am trying to do the same thing&amp;nbsp;(i.e., using proc genmod to run an interaction analysis using relative risk regression with a binary outcome variable,&amp;nbsp;poisson error distribution and a log link). I'm not sure how to format the estimate statements to request risk ratios for each level of the variable interacting w/ the independent variable of interest (CIG6C - Never, former, current). Any ideas how to revise this code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod descending data=data_6;
	class idno 	
		reg_use (ref="No")
		race1c (ref="WHITE") 
		gender1 (ref="FEMALE") 
		income6 (ref="≤ $49999") 
		educ1 (ref="&amp;lt; Bachelor's degree") 
		CIG6C (ref="NEVER")
		/ param=glm
		;

model htn (ref="No") = reg_use age6c gender1 income6 educ1 race1c drinks_wk CIG6C pamvcm6c bmi6c tchol_hdl_ratio glucose6 htn_meds lipid_meds dm_meds totmed6 

reg_use*CIG6C
	
/ error=poisson  link=log;

/* "By replacing link=log with link=identity in the MODEL statement, multivariate-adjusted risk (prevalence) differences are obtained" */
	
repeated  subject=idno / type=ind;

/* 	The REPEATED statement in PROC GENMOD can also be used to obtain robust standard errors by specifying an independent correlation structure. */

/* Risk Ratios for each level of CIG6C */
/* I don't know how to write these statements... */

    estimate 'Risk Ratio for CIG6C Former' CIG6C 1 0 / exp;
    estimate 'Risk Ratio for CIG6C Current' CIG6C 0 1 / exp;

   	format 
 	htn yes_no_fmt.
 	reg_use 					yes_no_fmt.		
	gender1 					gender1f.
    	race1c 						race1c.
    	educ1 						educ1fmt.
    	income6 					income6fmt.
    	cig6c 						cig6cf.
    	htn							
   	 dyslipid					
   	 dm 							
   	 htn_meds
   	 lipid_meds	
    	dm_meds						yes_no_fmt.
    ;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 13:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-term-in-Poisson-regression-with-PROC-GENMOD/m-p/913505#M45336</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2024-01-30T13:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction term in Poisson regression with PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-term-in-Poisson-regression-with-PROC-GENMOD/m-p/913587#M45338</link>
      <description>&lt;P&gt;You don't need to use the ESTIMATE statement, and shouldn't when you can use the LSMEANS (and related) statement which doesn't require you to determine appropriate coefficients. Use the LSMEANS statement with the DIFF and EXP options as illustrated in &lt;A href="http://support.sas.com/kb/23003" target="_self"&gt;this note&lt;/A&gt;. See the "Zou's modified Poisson approach" section of the note.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 14:57:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-term-in-Poisson-regression-with-PROC-GENMOD/m-p/913587#M45338</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2024-01-30T14:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction term in Poisson regression with PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-term-in-Poisson-regression-with-PROC-GENMOD/m-p/913602#M45348</link>
      <description>&lt;P&gt;This is closely related to the LSMEANS statement, but you can also have a look at the syntax for the 'slice' statement. It looks to me like something along the lines of&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;slice reg_use*CIG6C / sliceBy = CIG6C diff exp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;may get you going in the right direction.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 15:36:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-term-in-Poisson-regression-with-PROC-GENMOD/m-p/913602#M45348</guid>
      <dc:creator>Mike_N</dc:creator>
      <dc:date>2024-01-30T15:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction term in Poisson regression with PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-term-in-Poisson-regression-with-PROC-GENMOD/m-p/913663#M45355</link>
      <description>&lt;P&gt;The LSMEANS syntax provides the same estimates, but is less complex.&amp;nbsp;It also solves the interaction issue.&amp;nbsp;Thank you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know how I could derive a single p value for the interaction term?&amp;nbsp;The&amp;nbsp;Analysis Of GEE Parameter Estimates table has a p value for each level.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 19:52:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-term-in-Poisson-regression-with-PROC-GENMOD/m-p/913663#M45355</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2024-01-30T19:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction term in Poisson regression with PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-term-in-Poisson-regression-with-PROC-GENMOD/m-p/913667#M45356</link>
      <description>You get a single p-value for each model term if you add the TYPE3 option in the MODEL statement. By default, there are score tests for a GEE model, or you can also add the WALD option to get Wald tests instead.</description>
      <pubDate>Tue, 30 Jan 2024 20:00:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-term-in-Poisson-regression-with-PROC-GENMOD/m-p/913667#M45356</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2024-01-30T20:00:01Z</dc:date>
    </item>
  </channel>
</rss>

