Learn R Programming

lgspline (version 0.2.0)

get_interaction_patterns: Generate Interaction Variable Patterns

Description

Generates all possible interaction patterns for 2 or 3 variables. This is used in part for identifying which interactions and expansions to exclude (provided to "exclude_these_expansions" argument of lgspline) based on formulas provided.

Usage

get_interaction_patterns(vars)

Value

Character vector of interaction pattern strings

Arguments

vars

Character vector of variable names