tidy.std_glm: Provide tidy output from a std_glm object for use in...

View source: R/glm_methods.R

tidy.std_glmR Documentation

Provide tidy output from a std_glm object for use in downstream computations

Description

Tidy summarizes information about the components of the standardized regression fit.

Usage

## S3 method for class 'std_glm'
tidy(x, ...)

Arguments

x

An object of class std_glm

...

Not currently used

Value

A data.frame

Examples

set.seed(6)
n <- 100
Z <- rnorm(n)
X <- rnorm(n, mean = Z)
Y <- rbinom(n, 1, prob = (1 + exp(X + Z))^(-1))
dd <- data.frame(Z, X, Y)
x <- standardize_glm(
  formula = Y ~ X * Z,
  family = "binomial",
  data = dd,
  values = list(X = 0:1),
  contrasts = c("difference", "ratio"),
  reference = 0
)
tidy(x)


stdReg2 documentation built on April 13, 2025, 5:12 p.m.