I need to calculate the average of a variable, and then use that value as if it were itself a variable.
Essentially, I have a column vector with several missing observations, which I want to fill in with the average of the observed values of the column.
Im doing a monte carlo, so simply running a proc means and hard-coding in the value is not an option, so I need to have the process be automated.
Any suggestions?
Essentially, I have a column vector with several missing observations, which I want to fill in with the average of the observed values of the column.
Im doing a monte carlo, so simply running a proc means and hard-coding in the value is not an option, so I need to have the process be automated.
Any suggestions?