## I need the mean and standard deviation

Solved
Super Contributor
Posts: 328

# I need the mean and standard deviation

Hi I need both the mean and standard deviation of the estimate mean(estimate)

proc reg data=impute_t; by sim;

model y=times;

ods output ParameterEstimates=Para;

run;

proc means data=para noprint; class Variable; var estimate; output out=two mean(estimate)=col1 mean(StdErr)=col2;

run;

Accepted Solutions
Solution
‎02-07-2013 02:47 PM
Super Contributor
Posts: 328

## Re: I need the mean and standard deviation

I fixed it;

proc means data=para noprint; class Variable; var estimate; output out=two mean(estimate)=col1

std(estimate)=col2 mean(StdErr)=col3;

run;

 The SAS System

 2 3 0 50 6.7 4.4548 1.11542 Intercept 1 25 2.44651 0.09489 0.30363 TIMES 1 25 10.9931 1.57 1.92721

 1 2 3 0 50 6.71978 4.4548 1.11542 Intercept 1 25 2.44651 0.09489 0.30363 TIMES 1 25 10.9931 1.57 1.92721

All Replies
Super User
Posts: 23,667

## Re: I need the mean and standard deviation

So what's not working?

You've specified mean twice did you mean to specify standardeviation one or need to add it in?

proc means data=para noprint;

class Variable;

var estimate;

output out=two mean(estimate)=col1 std(estimate)=col2;

run;

Super Contributor
Posts: 328

## Re: I need the mean and standard deviation

This does not work;

I need the standarddeviation of estimate;

proc reg data=impute_t; by sim;

model y=times;

ods output ParameterEstimates=Para;

run;

proc means data=para noprint; class Variable; var estimate; output out=two mean(estimate)=col1

standarddeviation(estimate)=col2 mean(StdErr)=col3;

run;

proc print data=two;

run;

/*proc reg da

Super User
Posts: 23,667

## Re: I need the mean and standard deviation

If you take a look at the code I provided, the shortcut for standard deviation is STD or STDDEV

See here:

Base SAS(R) 9.2 Procedures Guide

Solution
‎02-07-2013 02:47 PM
Super Contributor
Posts: 328

## Re: I need the mean and standard deviation

I fixed it;

proc means data=para noprint; class Variable; var estimate; output out=two mean(estimate)=col1

std(estimate)=col2 mean(StdErr)=col3;

run;

 The SAS System

 2 3 0 50 6.7 4.4548 1.11542 Intercept 1 25 2.44651 0.09489 0.30363 TIMES 1 25 10.9931 1.57 1.92721

 1 2 3 0 50 6.71978 4.4548 1.11542 Intercept 1 25 2.44651 0.09489 0.30363 TIMES 1 25 10.9931 1.57 1.92721

🔒 This topic is solved and locked.