swaps {rFSA}R Documentation

Variables to include in first steip of an mth order interaction model determined from the Feasible Soution Alorithm.

Description

Finds the swaps available given a current position.

Usage

swaps(cur, n, quad = FALSE, yindex)

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.

yindex

index of response variable.

Value

a matrix with the possible forms by column.


[Package rFSA version 0.9.6 Index]