jepusto / lmeInfo

Information matrices for fitted nlme::lme and nlme::gls models
https://jepusto.github.io/lmeInfo/
4 stars 2 forks source link

Add tests for handling of models with missing outcome and/or covariate values #34

Closed jepusto closed 3 years ago

jepusto commented 4 years ago

Function should do:

  1. Get the data from the model.
  2. Generate missingness (CAR) on the outcome.
  3. Refit the model on the data with missing outcomes.
  4. Refit the model on the data after subsetting to complete cases.
  5. Compare results of (3) and (4).
  6. Generate missingness (CAR) on any covariates.
  7. Refit the model on the data with missing outcomes + covariates.
  8. Refit the model on the data after subsetting to complete cases.
  9. Compare results of (7) and (8).