?prop.test is helpful.

"Continuity correction is used only if it does not exceed the
difference between sample and null proportions in absolute value."

albyn

On Wed, Mar 27, 2013 at 02:04:51PM -0700, David Arnold wrote:
> All,
> 
> How come both of these are the same.  Both say "1-sample proportions test
> without continuity correction." I would suspect one would say "without" and
> one would say "with."
> 
> 
> > prop.test(118,236,.5,correct=FALSE,conf.level=0.95)
> 
>       1-sample proportions test without continuity correction
> 
> data:  118 out of 236, null probability 0.5 
> X-squared = 0, df = 1, p-value = 1
> alternative hypothesis: true p is not equal to 0.5 
> 95 percent confidence interval:
>  0.4367215 0.5632785 
> sample estimates:
>   p 
> 0.5 
> 
> > prop.test(118,236,.5,correct=TRUE,conf.level=0.95)
> 
>       1-sample proportions test without continuity correction
> 
> data:  118 out of 236, null probability 0.5 
> X-squared = 0, df = 1, p-value = 1
> alternative hypothesis: true p is not equal to 0.5 
> 95 percent confidence interval:
>  0.4367215 0.5632785 
> sample estimates:
>   p 
> 0.5 
> 
> 
> 
> 
> --
> View this message in context: 
> http://r.789695.n4.nabble.com/prop-test-correct-true-and-false-gives-same-answer-tp4662659.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 

-- 
Albyn Jones
Reed College
jo...@reed.edu

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to