Skip to content

How can I run mice with a GAMM? #596

Discussion options

You must be logged in to vote

You are trying to specify imputation models that are more complex than mice() can handle. Generalised additive mixed models (GAMM) are not supported. The best advice that I can offer at the moment is to simplify your model in one of two ways:

  1. run a flat model (no class variable) with data transforms. This may be sensible if the ICC is low (so clustering is not that important) and data transforms are critical;
  2. run a linear multilevel model (no transforms) if ICC is high, and use an imputation method that is relatively robust against violations of linearity, e.g., 2l.pmm().

Your choice would depend on the data at hand.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@kjetil-uis
Comment options

@stefvanbuuren
Comment options

@stefvanbuuren
Comment options

@kjetil-uis
Comment options

Answer selected by kjetil-uis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants