Help using Base SAS procedures

Standard Deviations

Reply
Contributor
Posts: 42

Standard Deviations

Good Afternoon,

Does anyone know how to calculate 2 standard deviations of a variable within a dataset?

Thank you in advance. Message was edited by: Scottcom4
Super Contributor
Posts: 281

Re: Standard Deviations

Posted in reply to Scottcom4
If you mean doing the std dev calculations entirely within a data step, I'm tempted to say its possible, but probably not worth the effort. PROC MEANS is much easier.
Trusted Advisor
Posts: 2,115

Re: Standard Deviations

Posted in reply to Scottcom4
If what you want is to add the 2SD to the dataset, you can do it easily with an aggregate function in PROC SQL.

Doc
Ask a Question
Discussion stats
  • 2 replies
  • 131 views
  • 0 likes
  • 3 in conversation