Skip to contents

Get xlevels used in the model

Usage

model_get_xlevels(model)

# Default S3 method
model_get_xlevels(model)

# S3 method for class 'lmerMod'
model_get_xlevels(model)

# S3 method for class 'glmerMod'
model_get_xlevels(model)

# S3 method for class 'felm'
model_get_xlevels(model)

# S3 method for class 'brmsfit'
model_get_xlevels(model)

# S3 method for class 'glmmTMB'
model_get_xlevels(model)

# S3 method for class 'plm'
model_get_xlevels(model)

# S3 method for class 'model_fit'
model_get_xlevels(model)

Arguments

model

(a model object, e.g. glm)
A model object.

Examples

lm(hp ~ mpg + factor(cyl), mtcars) |>
  model_get_xlevels()
#> $`factor(cyl)`
#> [1] "4" "6" "8"
#>