Closed cwolock closed 2 years ago
(We discussed at some point last summer whether we ever want to return one-sided CIs. Seems good to make it consistent within the package, at least.)
One-sided CIs are now returned for proptesti
with one-sided hypothesis tests
From Jim:
"I notice that when proptesti is called with exact = FALSE and a alternative of “greater” the corresponding CI is two sided rather than one-sided. While I’m not a fan of one-sided CI’s this is contrary to other R test functions as well as ttest and proptesti with EXACT = TRUE.
Call:
proptesti(x1 = 67, n1 = 114, null.hypoth = 0.5, alternative = "greater")
One-sample proportion test (approximate) :
Variable Obs Mean Std. Error 95% CI
var1 114 0.588 0.0461 [0.497, 0.678]
Summary:
Ho: True proportion is <= 0.5;
Ha: True proportion is > 0.5
Z = 1.87
p.value = 0.0305"