turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Stat Procs
- /
- Calculate Percentage for 95 % CI

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

07-21-2017 08:20 AM

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.

Please help.

TRT A TRT B

95% CI (x.xx, x.xx) (x.xx, x.xx)

CI[%] XX.X XX.X

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to vandhan

07-21-2017 08:25 AM

You can do it in a number of ways, the simplest being:

From means:

http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473542.htm

Fro univariate:

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

07-21-2017 08:28 AM

Thanks for your reply on this.

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to vandhan

07-21-2017 08:40 AM

vandhan wrote:

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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to vandhan

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;
```

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to vandhan

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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Rick_SAS

07-21-2017 08:56 AM

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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to vandhan

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.