Same Missing Value Imputation in both training and validation datasets

In modeling process, you need to impute missing values in the validation data set the same way you did in training sample. In SAS, there is an easier way to accomplish this task using PROC STDIZE.


SAS Code 
proc stdize data=training out=abc method=median reponly outstat=info;
var v1 v2 v3;
run; 
proc stdize data=validation out=valid_updated reponly method=in(info);
var v1 v2 v3;
run;
ListenData Logo
Spread the Word!
Share
Related Posts
About Author:
Deepanshu Bhalla

Deepanshu founded ListenData with a simple objective - Make analytics easy to understand and follow. He has over 10 years of experience in data science. During his tenure, he has worked with global clients in various domains like Banking, Insurance, Private Equity, Telecom and Human Resource.

0 Response to "Same Missing Value Imputation in both training and validation datasets"

Post a Comment

Next → ← Prev
Looks like you are using an ad blocker!

To continue reading you need to turnoff adblocker and refresh the page. We rely on advertising to help fund our site. Please whitelist us if you enjoy our content.