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;
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 |
| 0 | 50 | 6.7 | 4.45480 | 1.11542 | ||
| 2 | Intercept | 1 | 25 | 2.44651 | 0.09489 | 0.30363 |
| 3 | TIMES | 1 | 25 | 10.99305 | 1.57000 | 1.92721 |
| 1 | 0 | 50 | 6.71978 | 4.45480 | 1.11542 | |
|---|---|---|---|---|---|---|
| 2 | Intercept | 1 | 25 | 2.44651 | 0.09489 | 0.30363 |
| 3 | TIMES | 1 | 25 | 10.99305 | 1.57000 | 1.92721 |
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;
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
If you take a look at the code I provided, the shortcut for standard deviation is STD or STDDEV
See here:
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 |
| 0 | 50 | 6.7 | 4.45480 | 1.11542 | ||
| 2 | Intercept | 1 | 25 | 2.44651 | 0.09489 | 0.30363 |
| 3 | TIMES | 1 | 25 | 10.99305 | 1.57000 | 1.92721 |
| 1 | 0 | 50 | 6.71978 | 4.45480 | 1.11542 | |
|---|---|---|---|---|---|---|
| 2 | Intercept | 1 | 25 | 2.44651 | 0.09489 | 0.30363 |
| 3 | TIMES | 1 | 25 | 10.99305 | 1.57000 | 1.92721 |
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.