extract_params.glm: extract_params.glm

Description Usage Arguments Value Examples

Description

Extract generalized linear model parameters from the glm library

Usage

1
2
## 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

1
2
3
4
5
6
7
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)

aurelius documentation built on May 2, 2019, 3:43 a.m.