hybdesEco {osDesign} | R Documentation |
Computes the MLE for a Hybrid Design in the pure ecological setting, with two binary covariates, Z and W, in the model. hybdesEco is specific to the model logit(P(Y=1)) = b0 + b1*Z + b2*W
hybdesEco(MM.Z, MM.W, NN, cc, aprx = "binom", start.mle = NA, group.int = FALSE)
MM.Z |
MM.Z is a matrix of margin totals for covariate Z. Rows are groups, columns are margin totals |
MM.W |
MM.W is a matrix of margin totals for covariate W. Rows are groups, columns are margin totals |
NN |
NN is a matrix of outcome margin totals. Rows are groups, columns are margin totals. NN is always a K x 2 matrix, where K is the number of groups |
cc |
cc is a list of case-control data. Each element is a table with joint Z-W exposure (rows) and outcome (columns) |
aprx |
Type of approximation to use when calculating the hybrid likelihood. Default is the binomial approximation. |
start.mle |
Starting value for the Newton-Raphson algorithm used to determine Hybrid Design MLE. |
group.int |
A logical indicator of whether or not groups should be treated as having different intercept parameters. |
E. Smoot
Smoot, E., and S. Haneuse. "On the Analysis of Hybrid Designs that Combine Group- and Individual-Level Data." Biometrics (in press, 2014).