Hello! I'm about as green as they get to programming, let alone for SAS, and I'm really struggling. So any help would be so very helpful. I have 2 questions. 1) We had to split a data set into two (training and validation). In our training dataset we built our regression model. Now we need to test for sensitivity. There are two outliers. How do I do this? 2) Now that we have our model, we need to test it in our validation dataset. How do I do this? Below are the three ways I have tried and I get error messages that I don't understand. proc reg data=training; model v18= v6 v8 v9 v13 v14 v15; /*Final Model*/ run; /*Using model to predict outcome*/ proc reg data=validation; output out = validation p=Ypredicted v6 v8 v9 v13 v14 v15; run; proc glm data=training; model v18=v6 v8 v9 v13 v14 v15/solution; code file="/folders/myfolders/output"; run; data scored; set test; %include validation; run; proc stdize data=training reponly method=median out=training outstat=med; var v6 v8 v9 v13 v14 v15; run; proc stdize data=validation out=validation reponly method=in(med); var v6 v8 v9 v13 v14 v15; proc stdize data=med out=test reponly method=in(med); var v6 v8 v9 v13 v14 v15; run; proc score data=validation; model ""= v6 v8 v9 v13 v14 v15; run;
... View more