Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Average of a variable

Status
Not open for further replies.

Medvedeff

Instructor
Feb 12, 2008
29
US
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?
 
Thank you! That worked perfectly and saved me a huge headache!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top