<?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: Regression imputation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Regression-imputation/m-p/489209#M127679</link>
    <description>Thanks, where is paragraph 1? I'm learning regression imputation. Can I use outcome2 to predict outcome 4? because these two are the measurements of the same individual at different time points. I know they're (outcome 2 and outcome 4) supposed to be correlated.</description>
    <pubDate>Thu, 23 Aug 2018 11:27:09 GMT</pubDate>
    <dc:creator>Cruise</dc:creator>
    <dc:date>2018-08-23T11:27:09Z</dc:date>
    <item>
      <title>Regression imputation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-imputation/m-p/489115#M127607</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to impute outcome 2 using regression method for a single imputation. I know that I have to run regression model like show in the code to get the coefficients to build my model. Do you know how to convert current regression model to a loop? so that values regressed are imputed in the missing slots?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot for your help in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data support;
input id treatment gender age duration baseline outcome2 outcome4;
cards;
1	1	1	32.59	7.589041	4 -3 -3
2	1	2	37.51	13.50959	5 -1 -1
3	1	1	52.87	27.86849	6 . .
4	1	1	34.35	6.347945	3 -3 -3
5	1	2	30.13	5.131507	5 -4 -4
6	1	2	30.12	7.115068	5 . .
7	1	2	32.75	7.753425	9 -3 -3
8	1	1	30.9	7.89863	    3 . .
9	1	1	31.09	6.087671	6 -6 -6
10	1	2	30.61	3.605479	4 -3.5 -3.5
11	1	1	28.93	3.926027	5 -3 -3
12	1	2	34.1	5.10137	    3 -1 -1
13	0	1	30.33	2.334247	2 -1 -1
14	0	2	32.5	5.504109	5 -1 -1
15	0	2	32.27	8.273973	5 . .
16	0	2	36.73	11.73151	1 1 1
17	0	2	61.06	41.06301	8
;	

proc reg data=support;
model outcome2 outcome4=treatment age gender duration baseline;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 11:15:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-imputation/m-p/489115#M127607</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-08-23T11:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Regression imputation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-imputation/m-p/489208#M127678</link>
      <description>&lt;P&gt;A lot of deciding how to handle missing values depends on understanding the subject matter and understanding the goals of the analysis, none of which we know, and so the best way to handle the missings is usually up to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your case, the missing values are the Y variables in the regression, and generally those are not imputed (normally you would only impute values for the x-variables when missing) and so these observations would not be used in the regression. But even so, if you want values for the Y variables, then see paragraph 1.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 11:24:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-imputation/m-p/489208#M127678</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-08-23T11:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Regression imputation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-imputation/m-p/489209#M127679</link>
      <description>Thanks, where is paragraph 1? I'm learning regression imputation. Can I use outcome2 to predict outcome 4? because these two are the measurements of the same individual at different time points. I know they're (outcome 2 and outcome 4) supposed to be correlated.</description>
      <pubDate>Thu, 23 Aug 2018 11:27:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-imputation/m-p/489209#M127679</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-08-23T11:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Regression imputation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-imputation/m-p/489210#M127680</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Can I use outcome2 to predict outcome 4?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No. Just look at the data. There is no way that outcome2 can be used to impute values to replace the missings of outcome4.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 11:33:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-imputation/m-p/489210#M127680</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-08-23T11:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Regression imputation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-imputation/m-p/489212#M127682</link>
      <description>It's a bad example because I truncated data to only first few observations. I'd like to resolve the problem in terms of SAS programming. I hope it makes more sense with the complete data.</description>
      <pubDate>Thu, 23 Aug 2018 11:40:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-imputation/m-p/489212#M127682</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-08-23T11:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Regression imputation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-imputation/m-p/489216#M127684</link>
      <description>&lt;P&gt;As PaigeMiller pointed out, I think you are using the wrong terminology. Outcome2 is a response variable, therefore you do not "impute" the values, you "predict" them by scoring the mode. For your example, the output data set contains predicted values for the response variables:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=support plots=none;
model outcome2 outcome4=treatment age gender duration baseline;
output out=RegOut P=Pred2 Pred4;
quit;

proc print data=RegOut;
var ID OutCome2 Pred2 Outcome4 Pred4;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If this is not what you want, please explain further.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 12:11:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-imputation/m-p/489216#M127684</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-08-23T12:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regression imputation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-imputation/m-p/489221#M127687</link>
      <description>&lt;P&gt;Actually, it did not occur to me that perhaps the question is how to predict outcome2 and outcome4 in this situation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/132289"&gt;@Cruise&lt;/a&gt;, is that what you want, predictions of outcome2 and outcome4 based upon the fitted model (which would only use observations with no missing values)?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 12:20:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-imputation/m-p/489221#M127687</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-08-23T12:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Regression imputation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-imputation/m-p/489230#M127692</link>
      <description>this is exactly what i meant. just tapping into terminology and the concept of regression imputation. now i know of the function p= in the proc reg. what an awesome learning. thanks Paige. thanks Page.</description>
      <pubDate>Thu, 23 Aug 2018 12:39:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-imputation/m-p/489230#M127692</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-08-23T12:39:06Z</dc:date>
    </item>
  </channel>
</rss>

