<?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 Question: the multiple linear regression analysis using PROC SURVEYREG and testing for interactions in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Question-the-multiple-linear-regression-analysis-using-PROC/m-p/927379#M46151</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am doing multiple linear regression using proc survreg and want to test interaction between stressors and gender. I want to know if my codes below are correct for the model 1 and model 2. I really appreciate any feedback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was a list of variables I used for the analysis.&lt;/P&gt;&lt;P&gt;Gen2_cat= gender (binary)&lt;/P&gt;&lt;P&gt;ethnicity_group= ethnicity (4 categorical)&lt;/P&gt;&lt;P&gt;maritalstatus_dummy=marital status (binary)&lt;/P&gt;&lt;P&gt;nativity2=nativity (binary)&lt;/P&gt;&lt;P&gt;COVID_ImpactOverall_new= continuous&lt;/P&gt;&lt;P&gt;FAsocitalracism= continuous&lt;/P&gt;&lt;P&gt;Socialstressors4= continuous&lt;/P&gt;&lt;P&gt;materialstressors4 = continuous&lt;/P&gt;&lt;P&gt;Age_BirthYear_Calculate= continuous&lt;/P&gt;&lt;P&gt;miss_binary('1') = complete sample&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;/*Model1: Interaction Stressors*Gender – Interaction Testing*/
proc surveyreg data=mental8 alpha=0.05; /*alpha-set alpha level*/
 class gen2_cat (ref="0") ethnicity_group (ref="0") maritalstatus_dummy (ref="0") nativity2_cat (ref="0"); /*reference*/
 model COVID_ImpactOverall_new= FAsocitalracism socialstressor4_v1 materialstressors4  FAsocitalracism*gen2_cat socialstressor4_v1*gen2_cat materialstressors4*gen2_cat Age_BirthYear_Calculate gen2_cat ethnicity_group maritalstatus_dummy nativity2_cat income_new_n edu5_cat_n/solution CLPARM STB ADJRSQ;/*CLPARM=display 95%CI*/
 weight WEIGHTS_A7;
 domain miss_binary('1');
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The interaction between stressors and gender I got :&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;FAsocitalracism*gen2_cat : p=0.3537&lt;/P&gt;&lt;P&gt;socialstressor4_v1*gen2_cat : p=0.015&lt;/P&gt;&lt;P&gt;materialstressors4*gen2_cat : p=0.486&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Since interaction social stressor and gender was significant, I would like to stratify the model by gender. In this case, should I include all stressors or just social stressor in the stratified model?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;/*Model2: Stratified by Gender*/
proc surveyreg data=mental8 alpha=0.05; /*alpha-set alpha level*/
 class gen2_cat (ref="0") ethnicity_group (ref="0") maritalstatus_dummy (ref="0") nativity2_cat (ref="0"); /*reference*/
 model COVID_ImpactOverall_new= FAsocitalracism socialstressor4_v1 materialstressors4  Age_BirthYear_Calculate ethnicity_group maritalstatus_dummy 
 nativity2_cat income_new_n edu5_cat_n/solution CLPARM STB ADJRSQ;/*CLPARM=display 95%CI*/
 weight WEIGHTS_A7;
 domain miss_binary('1')*gen2_cat; /*stratify by gender*/
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also, I want to know how I can get predicted mean mental health by stressors (i.e., FAsocitalracism, socialstressor4, materialstressors4) for female and male in proc surveyreg and create a graph based on the results (like the graph I attached below).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="berylsky1_0-1715134058213.png" style="width: 439px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96226i49D22CF2541E2B1B/image-dimensions/439x263?v=v2" width="439" height="263" role="button" title="berylsky1_0-1715134058213.png" alt="berylsky1_0-1715134058213.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate if you could help me with this! Thank you in advance!&lt;/P&gt;&lt;P&gt;Looking forward to your response!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2024 02:12:19 GMT</pubDate>
    <dc:creator>berylsky1</dc:creator>
    <dc:date>2024-05-08T02:12:19Z</dc:date>
    <item>
      <title>Question: the multiple linear regression analysis using PROC SURVEYREG and testing for interactions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Question-the-multiple-linear-regression-analysis-using-PROC/m-p/927379#M46151</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am doing multiple linear regression using proc survreg and want to test interaction between stressors and gender. I want to know if my codes below are correct for the model 1 and model 2. I really appreciate any feedback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was a list of variables I used for the analysis.&lt;/P&gt;&lt;P&gt;Gen2_cat= gender (binary)&lt;/P&gt;&lt;P&gt;ethnicity_group= ethnicity (4 categorical)&lt;/P&gt;&lt;P&gt;maritalstatus_dummy=marital status (binary)&lt;/P&gt;&lt;P&gt;nativity2=nativity (binary)&lt;/P&gt;&lt;P&gt;COVID_ImpactOverall_new= continuous&lt;/P&gt;&lt;P&gt;FAsocitalracism= continuous&lt;/P&gt;&lt;P&gt;Socialstressors4= continuous&lt;/P&gt;&lt;P&gt;materialstressors4 = continuous&lt;/P&gt;&lt;P&gt;Age_BirthYear_Calculate= continuous&lt;/P&gt;&lt;P&gt;miss_binary('1') = complete sample&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;/*Model1: Interaction Stressors*Gender – Interaction Testing*/
proc surveyreg data=mental8 alpha=0.05; /*alpha-set alpha level*/
 class gen2_cat (ref="0") ethnicity_group (ref="0") maritalstatus_dummy (ref="0") nativity2_cat (ref="0"); /*reference*/
 model COVID_ImpactOverall_new= FAsocitalracism socialstressor4_v1 materialstressors4  FAsocitalracism*gen2_cat socialstressor4_v1*gen2_cat materialstressors4*gen2_cat Age_BirthYear_Calculate gen2_cat ethnicity_group maritalstatus_dummy nativity2_cat income_new_n edu5_cat_n/solution CLPARM STB ADJRSQ;/*CLPARM=display 95%CI*/
 weight WEIGHTS_A7;
 domain miss_binary('1');
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The interaction between stressors and gender I got :&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;FAsocitalracism*gen2_cat : p=0.3537&lt;/P&gt;&lt;P&gt;socialstressor4_v1*gen2_cat : p=0.015&lt;/P&gt;&lt;P&gt;materialstressors4*gen2_cat : p=0.486&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Since interaction social stressor and gender was significant, I would like to stratify the model by gender. In this case, should I include all stressors or just social stressor in the stratified model?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;/*Model2: Stratified by Gender*/
proc surveyreg data=mental8 alpha=0.05; /*alpha-set alpha level*/
 class gen2_cat (ref="0") ethnicity_group (ref="0") maritalstatus_dummy (ref="0") nativity2_cat (ref="0"); /*reference*/
 model COVID_ImpactOverall_new= FAsocitalracism socialstressor4_v1 materialstressors4  Age_BirthYear_Calculate ethnicity_group maritalstatus_dummy 
 nativity2_cat income_new_n edu5_cat_n/solution CLPARM STB ADJRSQ;/*CLPARM=display 95%CI*/
 weight WEIGHTS_A7;
 domain miss_binary('1')*gen2_cat; /*stratify by gender*/
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also, I want to know how I can get predicted mean mental health by stressors (i.e., FAsocitalracism, socialstressor4, materialstressors4) for female and male in proc surveyreg and create a graph based on the results (like the graph I attached below).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="berylsky1_0-1715134058213.png" style="width: 439px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96226i49D22CF2541E2B1B/image-dimensions/439x263?v=v2" width="439" height="263" role="button" title="berylsky1_0-1715134058213.png" alt="berylsky1_0-1715134058213.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate if you could help me with this! Thank you in advance!&lt;/P&gt;&lt;P&gt;Looking forward to your response!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 02:12:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Question-the-multiple-linear-regression-analysis-using-PROC/m-p/927379#M46151</guid>
      <dc:creator>berylsky1</dc:creator>
      <dc:date>2024-05-08T02:12:19Z</dc:date>
    </item>
  </channel>
</rss>

