Programming the statistical procedures from SAS

How to change the confidence interval in proc ttest?

Accepted Solution Solved
Reply
New Contributor
Posts: 2
Accepted Solution

How to change the confidence interval in proc ttest?

Hi!

I was attempting a question where the dataset was paired dataset about time taken by patients to fall asleep before and after taking a sleeping pill. I used the procedure proc ttest to do a hypothesis testing on the data. But it is required to use a 90% Confidence Interval and by default in SAS, it is 95%. So, how can I change the CI to 90%?

Thanks in advance.

Regards,

Arunabh (A novice in SAS)


Accepted Solutions
Solution
‎05-24-2017 08:27 AM
Super User
Posts: 9,775

Re: How to change the confidence interval in proc ttest?

proc ttest data=sashelp.class alpha=0.1;
class sex;
var weight;
run;

View solution in original post


All Replies
Solution
‎05-24-2017 08:27 AM
Super User
Posts: 9,775

Re: How to change the confidence interval in proc ttest?

proc ttest data=sashelp.class alpha=0.1;
class sex;
var weight;
run;
New Contributor
Posts: 2

Re: How to change the confidence interval in proc ttest?

Thank you so much! :-) 

Super User
Posts: 18,583

Re: How to change the confidence interval in proc ttest?

In addition to the ALPHA option, review the SIDES option. 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 125 views
  • 0 likes
  • 3 in conversation