A simple function to estimate a missingness probability given the model and estimating approach supplied in a model_specification objects

estimate_missing_prob(models, data, newdata = NULL, weights = 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

Value

A matrix of estimated missingness probabilities

Author

M. Alan Brookhart and Alexander Breskin