11-01-2018
Eibhlin_w
Fluorite | Level 6
Member since
09-14-2018
- 3 Posts
- 2 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by Eibhlin_w
Subject Views Posted 45124 11-01-2018 10:42 AM 45126 11-01-2018 10:38 AM 45167 11-01-2018 07:14 AM -
Activity Feed for Eibhlin_w
- Liked Re: How do I compute confidence intervals in SAS for sample proportions (percentages) for FreelanceReinh. 11-01-2018 10:44 AM
- Posted Re: How do I compute confidence intervals in SAS for sample proportions (percentages) on Statistical Procedures. 11-01-2018 10:42 AM
- Posted Re: How do I compute confidence intervals in SAS for sample proportions (percentages) on Statistical Procedures. 11-01-2018 10:38 AM
- Liked Re: How do I compute confidence intervals in SAS for sample proportions (percentages) for RW9. 11-01-2018 07:23 AM
- Posted How do I compute confidence intervals in SAS for sample proportions (percentages) on Statistical Procedures. 11-01-2018 07:14 AM
-
Posts I Liked
Subject Likes Author Latest Post 4 1
11-01-2018
10:42 AM
Hi FreelanceReinhard, thank you so much for the example of code and output, it's really appreciated. The proc freq worked for me and when I ran the solution you changed that worked too! 🙂
... View more
11-01-2018
10:38 AM
Thank you for the advice and link.
... View more
11-01-2018
07:14 AM
Hi there, I am trying to compute 95% confidence intervals of sample proportions in SAS enterprise guide. I have computed overall percentages and divided these by 100 to produce p-hat (0.0328) using proc sql. Referring to the code below, I then tried to compute confidence intervals using the code below but it does not compute the correct number (I have done these done correctly in excel, I should be getting .02884 but I am getting .03279 instead using the code below). Below is the lower CI, and the same problem happens for the upper CI. The 7810 below in the code refers to the number of my sample. I am new to SAS so I would appreciate any help or feedback. I have heard that proc freq data could be used (the overall percentages I have computed are derived from the original data, they are percentage differences of two totalled columns) but I don't know where to begin in computing the CIS in this way, but if this was a better way to do it, I have access to the raw data. Thanks so much in advance. Proc sql; create table CI as select (p_hat-(1.96*SQRT(p_hat*(1-p_hat))/7810)) as CI from P_hat_data; Quit;
... View more