extract_params.glm {aurelius}R Documentation

extract_params.glm

Description

Extract generalized linear model parameters from the glm library

Usage

## S3 method for class 'glm'
extract_params(object, ...)

Arguments

object

an object of class "glm"

...

further arguments passed to or from other methods

Value

PFA as a list-of-lists that can be inserted into a cell or pool

Examples

X1 <- rnorm(100)
X2 <- runif(100)
Y <- 3 - 5 * X1 + 3 * X2 + rnorm(100, 0, 3)
Y <- Y > 0

glm_model <- glm(Y ~ X1 + X2, family = binomial(logit))
model_params <- extract_params(glm_model)

[Package aurelius version 0.8.4 Index]