type_glm: Generalized linear model plot type

View source: R/type_glm.R

type_glmR Documentation

Generalized linear model plot type

Description

Type function for plotting a generalized model fit. Arguments are passed to glm.

Usage

type_glm(family = "gaussian", se = TRUE, level = 0.95, type = "response")

Arguments

family

a description of the error distribution and link function to be used in the model. For glm this can be a character string naming a family function, a family function or the result of a call to a family function. For glm.fit only the third option is supported. (See family for details of family functions.)

se

logical. If TRUE, confidence intervals are drawn.

level

the confidence level required.

type

character, partial matching allowed. Type of weights to extract from the fitted model object. Can be abbreviated.

Examples

# "glm" type convenience string
tinyplot(am ~ mpg, data = mtcars, type = "glm")

# Use `type_glm()` to pass extra arguments for customization
tinyplot(am ~ mpg, data = mtcars, type = type_glm(family = "binomial"))

tinyplot documentation built on April 12, 2025, 9:15 a.m.