Hello, I have a data set with several variables (X1, X2, X3,….) and I am trying to replace the missing values in the data set with the mean of the variable. Here is my sample code: DATA Complete_data; Set mydata.original_data; If X1= . Then X1 = mean(X1); run; Unfortunately, it’s not working. Please advise. Thanks.
... View more