Skip to content

Support for lmer and glmer in ivmediate() #78

@maryryan

Description

@maryryan

If it's possible, I'd like to request that support in the ivmediate() function be extended to lmer and glmer objects as it is in the mediate() function.

Currently, when you use lmer models as input in ivmediate() you receive the following error message:

Error in tcrossprod(model.matrix(terms(model.t), mf.T.1), t(coef.t)) : 
  requires numeric/complex matrix/vector arguments

I believe this particular error is due to how ivmediate() extracts model matrices.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions