Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

Author(s)

Jarrod Dalton and Benjamin Nutter

Examples

data(PE, package = "HydeNet")
g6 <- glm(treat ~ d.dimer + angio, data=PE, family="binomial")
HydeNet:::factorRegex(g6)

HydeNet

Hybrid Bayesian Networks Using R and JAGS

v0.10.11
MIT + file LICENSE
Authors
Jarrod E. Dalton <daltonj@ccf.org> and Benjamin Nutter <benjamin.nutter@gmail.com>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.