get_interaction_patterns: Generate Interaction Variable Patterns

View source: R/HelperFunctions.R

get_interaction_patternsR Documentation

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)

Arguments

vars

Character vector of variable names

Value

Character vector of interaction pattern strings


lgspline documentation built on June 8, 2025, 10:45 a.m.