AnestisTouloumis / multgee

GEE solver for correlated nominal or ordinal multinomial responses using a local odds ratios parameterization.
https://CRAN.R-project.org/package=multgee
9 stars 1 forks source link

Making the solvers compatible with emmeans package #8

Open Generalized opened 3 months ago

Generalized commented 3 months ago

Dear @AnestisTouloumis ,

I'm trying to use the ordLORgee solver with the emmeans package, a workhorse for EM-means and contrast comparisons I use. Unfortunately, it some standard components cannot be retrieved from it.

Error in (function (object, at, cov.reduce = mean, cov.keep = get_emm_option("cov.keep"), :
Can't handle an object of class “LORgee”
Use help("models", package = "emmeans") for information on supported models.

Author of the emmeans package provides a guide on how to add a custom model: https://cran.r-project.org/web/packages/emmeans/vignettes/xtending.html