Displaying 1 result from an estimated 1 matches for "agrasti".
Did you mean:
agbasi
2008 Feb 06
1
ci.pd() (Epi) and Newcombe method
Greetings!
I suspect that there is an error in the code for the
function ci.pd() in the Epi package.
This function is for computing confidence intervals
for a difference of proportions between two independent
groups of 0/1 responses, and implements the Newcombe
("Nc") method and the Agrasti-Caffo "AC" method.
I think there is an error in the computation for the
Newcombe method.
Specifically, where the code says
# Put the data in the right form
x1 <- aa; n1 <- aa+cc; p1 <- x1/n1
x2 <- bb; n2 <- bb+dd; p2 <- x2/n2
pd <- x1/n1 - x2/n2
z <- qno...