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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Proc Mean to calculate by

Status
Not open for further replies.

irinnew

Technical User
Mar 19, 2005
81
US
Hi everybody,

I need to calculate the Mean Age of a population (descriptive statistics) by gender and product. How can I do it with Proc Mean? Or probably with PROC UNIVARIATE?

Thank you in advance,

Irin
 
Proc Mean or Proc summary (they're basically the same proc but means produces printed output by default and summary doesn't) use a by or class statement to set up your groupings and a var statement to specify your age variable. On your output statement you'll want the MEAN= statistic.
Enjoy (And if you use CLASS, remember to use NWAY!)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top