BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
desireatem
Pyrite | Level 9

Please help,

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;

1 ACCEPTED SOLUTION

Accepted Solutions
desireatem
Pyrite | Level 9

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

         
0506.74.454801.11542
2Intercept1252.446510.094890.30363
3TIMES12510.993051.570001.92721

         
1 0506.719784.454801.11542
2Intercept1252.446510.094890.30363
3TIMES12510.993051.570001.92721

View solution in original post

4 REPLIES 4
Reeza
Super User

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;

desireatem
Pyrite | Level 9

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

Reeza
Super User

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

desireatem
Pyrite | Level 9

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

         
0506.74.454801.11542
2Intercept1252.446510.094890.30363
3TIMES12510.993051.570001.92721

         
1 0506.719784.454801.11542
2Intercept1252.446510.094890.30363
3TIMES12510.993051.570001.92721

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 575 views
  • 7 likes
  • 2 in conversation