inst/extexamples/mvregrid.R

data(AnimalVegetation, package = "compositions")
AV <- as.data.frame(AnimalVegetation)

AVmod <- lm(compositions::ilr(cbind(disc,spick,din,spin)) ~ regA, data = AV)

AVRG <- ref_grid(AVmod)   |> suppressWarnings()
AVRG

mvregrid(AVRG, newname = "comp", 
         newlevs = c("disc","spick","din","spin"),
         fcn = "ilrInv") |>
    confint(by = "regA")
     

Try the emmeans package in your browser

Any scripts or data that you put into this service are public.

emmeans documentation built on Oct. 14, 2024, 5:07 p.m.