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

A simple question

Status
Not open for further replies.

on818come

Programmer
Oct 6, 2008
22
US
proc means data=sample.b CV;
Var f15 f16 Avgtply NormUlti Norm2percent;
Title 'Summary of PB1 final';
output out=sample.a;
Run;

My simple question is:
How to output procedure data to dataset, with CV.
Each time I get something like MEAN N STED... But no CV
 
You can usually specify stats in the output step.
Code:
proc means data=sample.b CV;
  Var f15 f16 Avgtply NormUlti Norm2percent;
  Title 'Summary of PB1 final';
  output out=sample.a CV=;
Run;
Note, if you do this, all you'll get out is the CV statistic. Never come across the CV stat though, so I can't guarantee this one.
If you want the others, you'll have to specify them, and specify names for them too...
Code:
proc means data=sample.b CV;
  Var f15 f16 Avgtply NormUlti Norm2percent;
  Title 'Summary of PB1 final';
  output out=sample.a CV(f15)=CV_f15 CV(f16)=CV_f16 ...
                      mean(f15)=ave_f15 ...;
Run;

Chris
Business Analyst, Code Monkey, Data Wrangler.
SAS Guru.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top