Closed a-torgovitsky closed 3 years ago
I have just updated the code in #104. An updated output of the above example is:
95%-confidence interval: [0.63392, 0.88549]
p-value: 0.33002
Since .634 is inside the 95% confidence interval, I think the p-value for this updated output makes sense now.
On the other hand, I tried to test another point that is slightly smaller than the lower bound of the confidence interval:
set.seed(5)
r <- chorussell(data = df, lpmodel = lpm, ci = FALSE, beta.tgt = .633)
print(r)
This gives a p-value smaller than 0.05 because it is outside the 95%-confidence interval above.
p-value: 0.01996
Thanks!
Ok, that's good. Let's leave this open until solving #104 though, since they are undoubtedly related.
Sure, I agree. Thanks!
produces
But
.634
is not in the 95% confidence interval[.637, Inf]
. So how can the p-value at that point be larger than.05
?