expand_interactions: Expand the interaction terms for each subset group, say x11,...

Description Usage Arguments Examples

View source: R/common.R

Description

Expand the interaction terms for each subset group, say x11, x12, or c1, c2, c3

Usage

1
expand_interactions(dat, sel_names)

Arguments

dat

data frame

sel_names

characters

Examples

1
2
3
4
5
data("pringles_fat")
data_fat = pringles_fat
h_tmp = 1.3
x = data_fat[,c("c1","c2","c3","x11","x12","x21","x22")]
expand_interactions (dat=x, sel_names=c("c1", "c2", "c3"))

AHM documentation built on July 28, 2019, 9:02 a.m.