<?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: SAS SURVEYREG procedure to plot an interaction? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/761864#M37196</link>
    <description>&lt;P&gt;&lt;FONT color="#000000"&gt;Hi Zard,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks so much for your reply. That did work. Just one more follow-up question if you don't mind; is there anyway to do this (e.g., use PLM to plot the interaction) with a multiply imputed dataset? I used multiple imputation with the survey procedures to model my regression.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks in advance!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Sara&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Aug 2021 16:21:48 GMT</pubDate>
    <dc:creator>stodo53</dc:creator>
    <dc:date>2021-08-16T16:21:48Z</dc:date>
    <item>
      <title>SAS SURVEYREG procedure to plot an interaction?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/761303#M37150</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if anyone knows whether you can graphically display a regression line that also shows a categorical*continuous interaction using proc &lt;STRONG&gt;surveyreg&lt;/STRONG&gt;?&amp;nbsp;&lt;/P&gt;&lt;P&gt;exposure=categorical&lt;/P&gt;&lt;P&gt;outcome=continuous&lt;/P&gt;&lt;P&gt;interaction= categorical*continuous&lt;/P&gt;&lt;P&gt;covariates used = continuous + categorical&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is basically how I would like it to look:&lt;/P&gt;&lt;P&gt;the x-axis has the continuous variable from the interaction term displayed&lt;BR /&gt;the y-axis has the continuous outcome displayed&lt;/P&gt;&lt;P&gt;Then, there would be 4 different lines to represent the categorical variable (it has 4 levels)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone has a helpful link or a code that I could follow, that would be great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sara&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 21:42:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/761303#M37150</guid>
      <dc:creator>stodo53</dc:creator>
      <dc:date>2021-08-12T21:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SURVEYREG procedure to plot an interaction?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/761421#M37151</link>
      <description>&lt;P&gt;Hi Sara.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;PROC SURVEYREG doesn't produce this kind of plot, but you could use the &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_surveyreg_syntax15.htm" target="_self"&gt;STORE statement&lt;/A&gt;&amp;nbsp;and &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_plm_toc.htm" target="_self"&gt;PROC PLM&lt;/A&gt;.&amp;nbsp;For example,&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;proc surveyreg data=sashelp.class;&lt;BR /&gt;class sex;&lt;BR /&gt;model weight=sex|height;&lt;BR /&gt;store sreg;&lt;BR /&gt;run;&lt;BR /&gt;proc plm restore=sreg;&lt;BR /&gt;effectplot slicefit(sliceby=sex);&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 13:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/761421#M37151</guid>
      <dc:creator>Zard</dc:creator>
      <dc:date>2021-08-13T13:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SURVEYREG procedure to plot an interaction?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/761864#M37196</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;Hi Zard,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks so much for your reply. That did work. Just one more follow-up question if you don't mind; is there anyway to do this (e.g., use PLM to plot the interaction) with a multiply imputed dataset? I used multiple imputation with the survey procedures to model my regression.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks in advance!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Sara&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 16:21:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/761864#M37196</guid>
      <dc:creator>stodo53</dc:creator>
      <dc:date>2021-08-16T16:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SURVEYREG procedure to plot an interaction?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/761888#M37200</link>
      <description>&lt;P&gt;Hi Sara.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not aware of a way to do this, since PROC MIANALYZE does not have a STORE statement.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 18:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/761888#M37200</guid>
      <dc:creator>Zard</dc:creator>
      <dc:date>2021-08-16T18:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SURVEYREG procedure to plot an interaction?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/762040#M37207</link>
      <description>&lt;P&gt;Well,&amp;nbsp; you can use ODS OUTPUT to get various datasets from MIANALYZE.&amp;nbsp; I would think the parameterestimates dataset would work.&amp;nbsp; You might have to merge it back against the original data, but then you could use SGPLOT to get what you want (I think).&amp;nbsp; Check out the last example in the PROC MIANALYZE documentation to see if that looks like it might be useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 12:53:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/762040#M37207</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-08-17T12:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SURVEYREG procedure to plot an interaction?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/762086#M37209</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; is there anyway to do this (e.g., use PLM to plot the interaction) with a multiply imputed dataset? I used multiple imputation with the survey procedures to model my regression.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want the final model (averaged over all imputations), or do you want a plot for each set of imputed values? If you want B plots, one for each imputed value, you can use a BY statement in the survey procedures, then use the PLOTBY= option on the EFFECTPLOT statement. For examples, see the article &lt;A href="https://blogs.sas.com/content/iml/2016/06/22/sas-effectplot-statement.html" target="_self"&gt;"Use the EFFECTPLOT statement to visualize regression models in SAS."&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want the averaged model, use the final parameter estimates to build the predictive model in the DATA step.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 15:17:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/762086#M37209</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-08-17T15:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SURVEYREG procedure to plot an interaction?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/888066#M43982</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;Could you kindly share any example code for using the parameterestimates dataset from proc mianalyze to plot an interaction?</description>
      <pubDate>Sun, 06 Aug 2023 14:47:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/888066#M43982</guid>
      <dc:creator>Saifulinfs</dc:creator>
      <dc:date>2023-08-06T14:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SURVEYREG procedure to plot an interaction?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/888067#M43983</link>
      <description>Could you kindly share any example code for using the parameterestimates dataset from proc mianalyze to plot an interaction?</description>
      <pubDate>Sun, 06 Aug 2023 14:47:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/888067#M43983</guid>
      <dc:creator>Saifulinfs</dc:creator>
      <dc:date>2023-08-06T14:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SURVEYREG procedure to plot an interaction?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/888113#M43985</link>
      <description>&lt;P&gt;Follow the ideas in the article &lt;A href="https://blogs.sas.com/content/iml/2017/12/20/create-sliced-fit-plot-sas.html" target="_self"&gt;"How to create a sliced fit plot in SAS."&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The MIANALYZE procedure creates a ParameterEstimates table. Use those estimates to score the model for a range of values for the continuous variable and for each level of the categorical variable. Then use a SERIES stmt in PROC SGPLOT with the GROUP= option to display the lines for each level of the categorical variable.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 11:07:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/888113#M43985</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-08-07T11:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SURVEYREG procedure to plot an interaction?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/888115#M43986</link>
      <description>Thank you for your reply. Actually I am a new SAS user. Any help on using ParameterEstimates table from Proc MIanalyze to score a model for a range of values? Many thanks</description>
      <pubDate>Mon, 07 Aug 2023 11:15:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/888115#M43986</guid>
      <dc:creator>Saifulinfs</dc:creator>
      <dc:date>2023-08-07T11:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SURVEYREG procedure to plot an interaction?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/888116#M43987</link>
      <description>&lt;P&gt;Everybody was new once. Read the article and the links and you will begin to learn.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Two tips about getting help:&lt;/P&gt;
&lt;P&gt;1. Creating a new thread is better than jumping on an old thread started by someone else years ago.&lt;/P&gt;
&lt;P&gt;2. Short questions tend to get short answers. If yu want a longer response, ask a detailed question that includes sample data, sample program, and example output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 11:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-SURVEYREG-procedure-to-plot-an-interaction/m-p/888116#M43987</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-08-07T11:22:54Z</dc:date>
    </item>
  </channel>
</rss>

