powered by
Extract generalized linear model parameters from the glm library
# S3 method for glm extract_params(object, ...)
an object of class "glm"
further arguments passed to or from other methods
PFA as a list-of-lists that can be inserted into a cell or pool
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