bias_params | R Documentation |
bias_params
is one of two different options to represent bias assumptions for bias adjustment. The multibias_adjust()
function will apply the assumptions from these models and use them to adjust for biases in the observed data. It takes one input, a list, where each item in the list corresponds to the necessary models for bias adjustment. See below for bias models.
For each of the following bias models, the variables are defined:
X = True exposure
X* = Misclassified exposure
Y = True outcome
Y* = Misclassified outcome
C = Known confounder
j = Number of known confounders
U = Uncontrolled confounder
S = Selection indicator
bias_params(coef_list)
coef_list |
List of coefficient values from the above options of models. Each item of the list is an equation. The left side of the equation identifies the model (i.e., "u" for the model predicting the uncontrolled confounder). For the multinomial models, specify the value here based on the numerator (i.e., "x1u0", "x0u1", "x1u1" for the three multinomial models in Uncontrolled Confounding & Exposure Misclassification, Option 2) The right side of the equation is the vector of values corresponding to the model coefficients (from left to right). |
list_for_uc <- list(
u = c(-0.19, 0.61, 0.70, -0.09, 0.10, -0.15)
)
bp_uc <- bias_params(coef_list = list_for_uc)
list_for_em_om <- list(
x1y0 = c(-2.18, 1.63, 0.23, 0.36),
x0y1 = c(-3.17, 0.22, 1.60, 0.40),
x1y1 = c(-4.76, 1.82, 1.83, 0.72)
)
bp_em_om <- bias_params(coef_list = list_for_em_om)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.