Learn R Programming

equatiomatic (version 0.1.0)

extract_lhs.glm: Extract left-hand side of a glm object

Description

Extract a string of the outcome/dependent/y variable with the appropriate link function.

Usage

# S3 method for glm
extract_lhs(model, ital_vars, show_distribution, ...)

Arguments

model

A fitted model

ital_vars

Logical, defaults to FALSE. Should the variable names not be wrapped in the \operatorname{} command?

show_distribution

Logical. When fitting a logistic or probit regression, should the binomial distribution be displayed? Defaults to FALSE.

Value

A character string