estimate_missing_glmnet: a function to estimate a missingness probability using logistic regression

estimate_missing_glmnet(models, data, newdata, weights = NULL, args = NULL)

Arguments

models

A model_specification object

data

Source data

newdata

Data where predictions are required (if NULL then prediction are made in source data)

weights

A vector of observation weights

args

Additional argument to glmnet

Value

A matrix of estimated missingness probabilities

Author

M. Alan Brookhart and Alexander Breskin