Add interaction terms to list of test variables if needed

test_specs(tv, int)

Arguments

tv

List of variables to use for testing for regress or logistic

int

Interaction terms specified

Value

A vector of variables names to test

Details

See https://radiant-rstats.github.io/docs/model/regress.html for an example in Radiant

Examples

test_specs("a", "a:b")
#> Interaction terms contain variables specified for testing. #> Relevant interaction terms are included in the requested test. #>
#> [1] "a:b"
test_specs("a", c("a:b", "b:c"))
#> Interaction terms contain variables specified for testing. #> Relevant interaction terms are included in the requested test. #>
#> [1] "a:b"
test_specs("a", c("a:b", "b:c", "I(c^2)"))
#> Interaction terms contain variables specified for testing. #> Relevant interaction terms are included in the requested test. #>
#> [1] "a:b"
test_specs(c("a", "b", "c"), c("a:b", "b:c", "I(c^2)"))
#> Interaction terms contain variables specified for testing. #> Relevant interaction terms are included in the requested test. #>
#> [1] "a:b" "b:c"