Hi all,
I ran the below code:
proc reg data = wine;
model quality = alcohol 'volatile acidity'n sulphates 'total_sulfur dioxide'n chlorides pH 'sulphates total sulfur dioxide'n 'volatile acidity totsd'n 'alcohol sulphates'n 'sulphates pH'n/ influence;
output out = influencestats cookd = cooksd dffits = dffits h = hatmat p = preds r = resid;
rstudent = studdelresid student=studres;
run;
I got this error message:
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
68
69 proc reg data = wine;
70 model quality = alcohol 'volatile acidity'n sulphates 'total_sulfur dioxide'n chlorides pH 'sulphates total sulfur
70 ! dioxide'n 'volatile acidity totsd'n 'alcohol sulphates'n 'sulphates pH'n/ influence; /* n = 20, p = 3*/
ERROR: Variable 'total_sulfur dioxide'n not found.
ERROR: Variable 'sulphates total sulfur dioxide'n not found.
ERROR: Variable 'volatile acidity totsd'n not found.
ERROR: Variable 'alcohol sulphates'n not found.
ERROR: Variable 'sulphates pH'n not found.
NOTE: The previous statement has been deleted.
71 output out = influencestats cookd = cooksd dffits = dffits h = hatmat p = preds r = resid;
72 rstudent = studdelresid student=studres;
________
180
NOTE: The previous statement has been deleted.
ERROR 180-322: Statement is not valid or it is used out of proper order.
73 run;
And I checked the table contents, no variable name error here:
How can I resolve the error in the code? Thanks in advance!!