groupR2: The function '?groupR2()'

Description Usage Arguments Value Examples

View source: R/sensemakr.R

Description

forms R2 quantities for a model.matrix column group tied to their model's term

Usage

1
groupR2(model, terms_4_group)

Arguments

model

an 'lm' object

terms_4_group

a character vector of one or more terms to be viewed together as a single group. NOTE: The elements in 'terms_4_group' must match the character values of "(attr(terms(formula(model)),'term.labels'))".

Value

a numeric scalar representing the R2 value of with-holding the model matrix columns associated with 'terms_4_group'

Examples

1
none, a low level helper

statsccpr/sensemakr documentation built on May 30, 2019, 10:41 a.m.