07-21-2017 08:20 AM
I have calculated using Proc Means procedure.
Now I wanted to Calculate Percentage for this CIs.
How would I compute percentage (%) for 95% CIs I am cluless seeing first time.
TRT A TRT B
95% CI (x.xx, x.xx) (x.xx, x.xx)
CI[%] XX.X XX.X
07-21-2017 08:25 AM
You can do it in a number of ways, the simplest being:
07-21-2017 08:40 AM
Thanks for your reply on this.
I see it is giving just CIs. I would want calculate % Percentage for those CIs.
I'm afraid I don't understand the meaning of "% Percentage" in the context of confidence intervals. This is not a statistical phrase that I have ever seen.
07-21-2017 08:26 AM
I don't understand your question. Could you provide an example? For example, what sort of output would you want for the following example?
data Have; call streaminit(1); do i = 1 to 20; Trt = "A"; x = rand("uniform"); output; end; do i = 1 to 15; Trt = "B"; x = 0.5 + rand("uniform"); output; end; drop i; run; proc means data=Have mean LCLM UCLM; class Trt; var x; run;
07-21-2017 08:43 AM
Maybe we are having a communication issue. You say "I would want calculate % Percentage for those CIs," but we don't know what that means.
A confidence interval is an interval estimate for a parameter. In 95% of random samples, the 95% CI will contain the true parameter for a population that satisfies the assumptions of the method.
Are you asking "how many data values are inside the 95% CI"? Statistically speaking, that is a question that doesn't provide any insight into the inference. It is an irrelevant question.
07-21-2017 08:56 AM
07-21-2017 09:28 AM
My previous post includes simulated data that has 35 observations. Please use that data to show what percentages you want to get for the second row.