powered by
Performs maximum likelihood estimation (MLE) of the joint distribution of two binary variables using only marginal summary data from multiple studies.
cor_bin(ni, xi, yi, ci_method = c("none", "normal", "lr"))
A named list with point estimates, variance, standard error, and confidence interval (if requested).
Estimated marginal probability for variable 1.
Estimated marginal probability for variable 2.
Estimated joint probability.
Estimated variance of p11_hat.
p11_hat
Standard error of p11_hat.
Confidence interval for p11_hat, if requested.
Numeric vector. Sample sizes for each dataset.
Numeric vector. Count of observations where variable 1 equals 1.
Numeric vector. Count of observations where variable 2 equals 1.
Character string. Method for confidence interval computation. Options are "none" (default), "normal", or "lr" (likelihood ratio).
"none"
"normal"
"lr"
data(bin_example) cor_bin(bin_example$ni, bin_example$xi, bin_example$yi, ci_method = "lr")
Run the code above in your browser using DataLab