Last data update: 2014.03.03
|
R: Estimate parameters from odds-ratio
tetrachoric | R Documentation |
Estimate parameters from odds-ratio
Description
Calculate tetrachoric correlation of probabilities from odds-ratio
Usage
tetrachoric(P, OR, approx = 0, ...)
Arguments
P |
Joint probabilities or marginals (if OR is given)
|
OR |
Odds-ratio
|
approx |
If TRUE an approximation of the tetrachoric correlation is used
|
... |
Additional arguments
|
Examples
tetrachoric(0.3,1.25) # Marginal p1=p2=0.3, OR=2
P <- matrix(c(0.1,0.2,0.2,0.5),2)
prod(diag(P))/prod(revdiag(P))
##mets:::assoc(P)
tetrachoric(P)
or2prob(2,0.1)
or2prob(2,c(0.1,0.2))
Results
|