Contributor
Posts: 34

# Calculate Percentage for 95 % CI

Hello There,

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

Super User
Posts: 7,413

Contributor
Posts: 34

## Re: Calculate Percentage for 95 % CI

I see it is giving just CIs. I would want calculate % Percentage for those CIs.

Posts: 1,630

## Re: Calculate Percentage for 95 % CI

vandhan wrote:

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.

SAS Super FREQ
Posts: 3,483

## Re: Calculate Percentage for 95 % CI

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;

``````
SAS Super FREQ
Posts: 3,483

## Re: Calculate Percentage for 95 % CI

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.

Contributor
Posts: 34

## Re: Calculate Percentage for 95 % CI

In my question there is a mock i given. i want second row to be calculated. First row CIs comes from lcm option in Mean Lower and Upper CIs.
SAS Super FREQ
Posts: 3,483

## Re: Calculate Percentage for 95 % CI

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.

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