Learn R Programming

HydeNet (version 0.10.11)

factorRegex: Produce Regular Expressions for Extracting Factor Names and Levels

Description

A utility function to produce a regular expression that can separate factor names and factor levels in the broom::tidy()$term output.

Usage

factorRegex(fit)

Arguments

fit

a model object

Examples

Run this code
# NOT RUN {
data(PE, package = "HydeNet")
g6 <- glm(treat ~ d.dimer + angio, data=PE, family="binomial")
HydeNet:::factorRegex(g6)

# }

Run the code above in your browser using DataLab