daniel1noble / orchaRd

Extending the Orchard Plot for Meta-analysis
https://daniel1noble.github.io/orchaRd/
11 stars 6 forks source link

Interaction models - ref_grid #19

Closed daniel1noble closed 4 months ago

daniel1noble commented 1 year ago

Some interaction models, mainly between two categorical moderators, may fail when metafor drops 'redundant predictors'. This creates a disconnect between data and model object such that emmeans cannot create a reference grid. Should add more checks in for this.

For now, a very simple solution, is to create a new categorical moderator that interacts the two moderators of interest and fit this new model. Keeping as character string will mean that factor levels don't cause issues.

daniel1noble commented 4 months ago

Believe this is sorted now with respect to moving back to data slot in metaphor