summary.margin: Summarises the marginal output

View source: R/adjrr.R

summary.marginR Documentation

Summarises the marginal output

Description

Summary method for "'margin'" class

Usage

## S3 method for class 'margin'
summary(object, ...)

Arguments

object

An object of class "'margin'" resulting from a call to margin

...

Further arguments passed from other methods

Value

No return, called for effects

Examples

## fit a model using glmmTMB
fit <- glmmTMB::glmmTMB(y ~ Treatment + x1 + x2 + x3 + x4 + (1|Cluster),
  data = trial_data, family = binomial(link="logit"),REML = TRUE)
## relative risk, average over random effects and fixed effects
m1 <- margin(fit,
       x = "Treatment",
       type = "ratio",
       average = c("x1","x2","x3","x4"),
       re = "average",
       se="GLS")
summary(m1)

marginme documentation built on Aug. 8, 2025, 6:17 p.m.