I would like to subtract the 95% confidence interval out. Could anyone suggest me the way to do it please?
PROC GLM DATA = A3_3; CLASS racegp; MODEL lbmi = racegp sex age/SOLUTION CLPARM; LSMEANS racegp/PDIFF STDERR CL; FORMAT racegp racefmt.; OUTPUT OUT = A3_4 LCL=lcl UCL=ucl lsmean= lsm; RUN;
I tried above code but the outcome is not right. ANYONE CAN help please?
I would like to subtract the 95% confidence interval out.
Do you mean, remove it from the output (i.e. show the table without the confidence interval showing)?
Please elaborate.
Hi Unison,
I mean I want to use the confidence interval only for further analysis. Could you tell me what I should do next?
Can you give us a longer and more detailed explanation of what you want, instead of these very brief descriptions that can mean a number of different things?
Here's some instructions and explanations on how to capture output that is shown to a data set.
https://blogs.sas.com/content/sastraining/2017/03/31/capturing-output-from-any-procedure-with-an-ods...
You need to capture the data into a new data set. Instructions above are available on how to get that data into a data set. Depending on what you're trying to do next, there may be other, better ways but we don't know what you're trying to do overall.
Use an ODS output dataset, and do whatever calculation is needed. Add the statement:
ods output parameterestimates=pe;
to your analysis. The parameter estimates data will be written to dataset pe.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.