swaps: Variables to include in first steip of an mth order...

Description Usage Arguments Value

View source: R/swaps.R

Description

Finds the swaps available given a current position.

Usage

1
swaps(cur, n, quad = FALSE)

Arguments

cur

A vector of length greater than 2 of what current explantory varialbes are being used in the model.

n

The number of explanatory variables in available to swap.

quad

Whether to include quadratic terms. ie (x1*x1) as potential swaps.

Value

a matrix with the possible forms by column.


jmsuk0587/rFSA documentation built on July 7, 2017, 2:23 a.m.