Learn R Programming

aurelius (version 0.8.4)

extract_params.glm: extract_params.glm

Description

Extract generalized linear model parameters from the glm library

Usage

# S3 method for 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

Run this code
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)

Run the code above in your browser using DataLab