<?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: Spline line for a multivariate linear model in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Spline-line-for-a-multivariate-linear-model/m-p/891251#M44162</link>
    <description>&lt;P&gt;Hmmm, thanks. The EFFECTPLOT statement is powerful. However, I don't understand one thing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc logistic data=d202ps_3;
   class obesity_status(REF='0') genderC(REF='0')  AF(REF='0') Hypertension(REF='0') CHF(REF='0') akiC(ref='0') ddiC(REF='0') indicationC(REF='0') CYP2C9code(REF='0') VKORC1Code(REF='0');
   model firstInrAttain(event='1') = obesity_status Weight__kg_ ageY genderC  AF Hypertension CHF serumAlb akiC ddiC indicationC CYP2C9code VKORC1Code / clodds=both clparm=both;
effectplot slicefit(x=ageY sliceby=obesity_status=0 1 2) / clm noobs;
run;&lt;/PRE&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;PRE&gt;proc logistic data=d202ps_3;
   class /*obesity_status(REF='0')*/ genderC(REF='0')  AF(REF='0') Hypertension(REF='0') CHF(REF='0') akiC(ref='0') ddiC(REF='0') indicationC(REF='0') CYP2C9code(REF='0') VKORC1Code(REF='0');
   model firstInrAttain(event='1') = obesity_status Weight__kg_ ageY genderC  AF Hypertension CHF serumAlb akiC ddiC indicationC CYP2C9code VKORC1Code / clodds=both clparm=both;
effectplot slicefit(x=ageY sliceby=obesity_status=0 1 2) / clm noobs;
run;&lt;/PRE&gt;
&lt;P&gt;The two produced obviously different graphs. The only difference in the code is whether obesity_status was listed as class/category variable. Also, if I treat obesity_status as a class variable, I cannot define its levels in the EFFECTPLOT analysis (i.e., it has 4 levels but I prefer to use only three levels.) Thanks.&lt;/P&gt;</description>
    <pubDate>Sun, 27 Aug 2023 13:45:29 GMT</pubDate>
    <dc:creator>TomHsiung</dc:creator>
    <dc:date>2023-08-27T13:45:29Z</dc:date>
    <item>
      <title>Spline line for a multivariate linear model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Spline-line-for-a-multivariate-linear-model/m-p/856091#M42321</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am not familiar with the spline procedures. The goal I intend to achieve is to draw a spline-line graph, with a response variable as the Y-axis together with its confidence interval, and an independent variable as the X-axis changes continuously. However, the model has more than one independent variable. So, where should I start from scratch? Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 11:47:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Spline-line-for-a-multivariate-linear-model/m-p/856091#M42321</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2023-01-28T11:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Spline line for a multivariate linear model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Spline-line-for-a-multivariate-linear-model/m-p/856094#M42322</link>
      <description>&lt;P&gt;PROC ADAPTIVEREG will get you started. This simple example should help&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_odsgraph_sect109.htm" target="_self"&gt;ODS Graphics and PROC ADAPTIVEREG&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 14:37:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Spline-line-for-a-multivariate-linear-model/m-p/856094#M42322</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2023-01-28T14:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Spline line for a multivariate linear model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Spline-line-for-a-multivariate-linear-model/m-p/891228#M44159</link>
      <description>&lt;P&gt;Hello, everyone&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Today I learned the PROC TRANSREG could be used to draw spline, e.g.,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods graphics on;
proc transreg data=d202ps_4;
model identity(addMg) = spline(serumAlb);
run;&lt;/PRE&gt;
&lt;P&gt;However, my linear regression model should include many other independent variables. I tried to add them to the PROC TRANSREG but it did not work as I expected. Does anyone know how to solve this issue (spline with other variables adjusted)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 27 Aug 2023 08:39:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Spline-line-for-a-multivariate-linear-model/m-p/891228#M44159</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2023-08-27T08:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Spline line for a multivariate linear model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Spline-line-for-a-multivariate-linear-model/m-p/891237#M44160</link>
      <description>Use EFFECT statement of PROC.&lt;BR /&gt;Check &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt; 's blogs:&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2020/06/08/interactions-spline-regression.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2020/06/08/interactions-spline-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>Sun, 27 Aug 2023 10:35:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Spline-line-for-a-multivariate-linear-model/m-p/891237#M44160</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-08-27T10:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Spline line for a multivariate linear model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Spline-line-for-a-multivariate-linear-model/m-p/891251#M44162</link>
      <description>&lt;P&gt;Hmmm, thanks. The EFFECTPLOT statement is powerful. However, I don't understand one thing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc logistic data=d202ps_3;
   class obesity_status(REF='0') genderC(REF='0')  AF(REF='0') Hypertension(REF='0') CHF(REF='0') akiC(ref='0') ddiC(REF='0') indicationC(REF='0') CYP2C9code(REF='0') VKORC1Code(REF='0');
   model firstInrAttain(event='1') = obesity_status Weight__kg_ ageY genderC  AF Hypertension CHF serumAlb akiC ddiC indicationC CYP2C9code VKORC1Code / clodds=both clparm=both;
effectplot slicefit(x=ageY sliceby=obesity_status=0 1 2) / clm noobs;
run;&lt;/PRE&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;PRE&gt;proc logistic data=d202ps_3;
   class /*obesity_status(REF='0')*/ genderC(REF='0')  AF(REF='0') Hypertension(REF='0') CHF(REF='0') akiC(ref='0') ddiC(REF='0') indicationC(REF='0') CYP2C9code(REF='0') VKORC1Code(REF='0');
   model firstInrAttain(event='1') = obesity_status Weight__kg_ ageY genderC  AF Hypertension CHF serumAlb akiC ddiC indicationC CYP2C9code VKORC1Code / clodds=both clparm=both;
effectplot slicefit(x=ageY sliceby=obesity_status=0 1 2) / clm noobs;
run;&lt;/PRE&gt;
&lt;P&gt;The two produced obviously different graphs. The only difference in the code is whether obesity_status was listed as class/category variable. Also, if I treat obesity_status as a class variable, I cannot define its levels in the EFFECTPLOT analysis (i.e., it has 4 levels but I prefer to use only three levels.) Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Aug 2023 13:45:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Spline-line-for-a-multivariate-linear-model/m-p/891251#M44162</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2023-08-27T13:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Spline line for a multivariate linear model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Spline-line-for-a-multivariate-linear-model/m-p/891289#M44169</link>
      <description>"The only difference in the code is whether obesity_status was listed as class/category variable. "&lt;BR /&gt;That would lead you to a different design matrix,&lt;BR /&gt;Therefore, you can not expect they have the same graphs(the Predictive Value is changed).&lt;BR /&gt;&lt;BR /&gt;"Also, if I treat obesity_status as a class variable, I cannot define its levels in the EFFECTPLOT analysis"&lt;BR /&gt;Maybe  &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt; could give you the right answer .</description>
      <pubDate>Mon, 28 Aug 2023 11:36:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Spline-line-for-a-multivariate-linear-model/m-p/891289#M44169</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-08-28T11:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Spline line for a multivariate linear model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Spline-line-for-a-multivariate-linear-model/m-p/891304#M44172</link>
      <description>&lt;P&gt;See this doc example:&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_042/statug/statug_introcom_sect045.htm" target="_self"&gt;PROC LOGISTIC EFFECTPLOT Statement with CLASS variable&lt;/A&gt;&amp;nbsp;. This shows how to use a CLASS variable as the SLICEBY= effect on the EFFETPLOT statement. You do not specify the levels of the CLASS effect here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 12:36:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Spline-line-for-a-multivariate-linear-model/m-p/891304#M44172</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2023-08-28T12:36:45Z</dc:date>
    </item>
  </channel>
</rss>

