Learn R Programming

gtsummary (version 0.1.0)

parse_terms: Convert a regression model object to a parsed list matching model terms to variable names

Description

With the parse_terms() function, each term in the tidied model is parsed and matched with a variable name.

Usage

parse_terms(x, tidy_model, show_yesno)

Arguments

x

regression model object

tidy_model

tidied model output from tidy_wrap function

show_yesno

categorical and factor variables that are c("No", "Yes") or c("no", "yes") default to dichotomous printing. To force both levels to be shown

Value

list with one entry for each variable, each element are the terms from the regression model.For categorical variables, the reference level has been added.