The polyFit
function calls getPoly
to generate
polynomial terms from predictor variables, then fits the generated
data to a linear or logistic regression model. (Powers of dummy
variables will not be generated, other than degree 1, but interaction
terms will calculated.
If pcaMethod
is not NULL
, a principal component
analysis is performed before or after generating the polynomials.
When logistic regression for classification is indicated, with more
than two classes, All-vs-All or One-vs-All methods, coded
'all'
and 'one'
, can be applied to deal with multiclass
problem. Multinomial logit ('multilog'
) is also available.
Under the 'mvrlm' option in a classification problem, lm
is
called with multivariate response, using cbind
and dummy
variables for class membership as the response. Since predictors are
used to form polynomials, this should be a reasonable model, and is
much faster than 'glm'.