Description Usage Arguments Details Value References Examples
non-logistic link function for D* given Z and sensitivity. This function assumes that sensitivity as a function of X is known or has been estimated
1 | nonlogistic(Dstar, Z, c_X, weights = NULL)
|
Dstar |
Numeric vector containing observed disease status. Should be coded as 0/1 |
Z |
numeric matrix of covariates in disease model |
c_X |
sensitivity as a function of X, P(D* = 1| D = 1, S = 1, X) |
weights |
Optional numeric vector of patient-specific weights used for selection bias adjustment. Default is NULL |
We are interested in modeling the relationship between binary disease status and covariates Z using a logistic regression model. However, D may be misclassified, and our observed data may not well-represent the population of interest. In this setting, we estimate parameters from the disease model using the following modeling framework.
Notation:
Binary disease status of interest.
Observed binary disease status. Potentially a misclassified version of D. We assume D = 0 implies D* = 0.
Indicator for whether patient from population of interest is included in the analytical dataset.
Covariates in disease model of interest.
Covariates in model for patient inclusion in analytical dataset (selection model).
Covariates in model for probability of observing disease given patient has disease (sensitivity model).
Model Structure:
logit(P(D=1|X)) = theta_0 + theta_Z Z
P(S=1|W,D)
logit(P(D* = 1| D = 1, S = 1, X)) = beta_0 + beta_X X
a list with two elements: (1) 'param', a vector with parameter estimates for disease model (logOR of Z), and (2) 'variance', a vector of variance estimates for disease model parameters. Results do not include intercept.
Statistical inference for association studies using electronic health records: handling both selection bias and outcome misclassification Lauren J Beesley and Bhramar Mukherjee medRxiv 2019.12.26.19015859
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(SAMBA)
# These examples are generated from the vignette. See it for more details.
# Generate IPW weights from the true model
expit <- function(x) exp(x) / (1 + exp(x))
prob.WD <- expit(-0.6 + 1 * samba.df$D + 0.5 * samba.df$W)
weights <- nrow(samba.df) * (1 / prob.WD) / (sum(1 / prob.WD))
# Estimate sensitivity by using inverse probability of selection weights
# and P(D=1)
sens <- sensitivity(samba.df$Dstar, samba.df$X, prev = mean(samba.df$D),
weights = weights)
nonlog1 <- nonlogistic(samba.df$Dstar, samba.df$Z, c_X = sens$c_X,
weights = weights)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.