Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fnextrm

Find first term to enter forward stepwise regression that preserves model hierarchy


Description

This function finds the first term to enter a hierarchical forward stepwise regression. If the term is an interaction or quadratic term, the parent main effects are also included. This function is called by ihstep.R

Usage

fnextrm(y,des,prvm)

Arguments

y

input - this is a data frame containing a single numeric column of response data.

des

input - this is a data frame containing the numeric columns of the candidate independent variables. The column names of des are of length 1. The m three-level factors always preceed the c two-level factors in the design.

prvm

input - this is a vector of text names of the terms in the model. This is created as the value resulting from running ihstep or fhstep.

Value

returned vector of terms to be entered in the model at the next step.

Author(s)

John Lawson


daewr

Design and Analysis of Experiments with R

v1.2-7
GPL-2
Authors
John Lawson [aut, cre], Gerhard Krennrich [aut]
Initial release
2021-2-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.