nextswap: Variables to include in the >1st step of an mth order...

Description Usage Arguments Value

View source: R/support.R

Description

Finds the swaps available given a current position given previous picks.

Usage

1
nextswap(curpos, n, prevpos, quad)

Arguments

curpos

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.

prevpos

A vector of previous best spots

quad

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

Value

a matrix with the possible forms by column.


rFSA documentation built on July 1, 2020, 10:30 p.m.