fhstep: Subsequent steps in a forward stepwise regression that...

View source: R/fhstep.R

fhstepR Documentation

Subsequent steps in a forward stepwise regression that preserves model hierarchy

Description

This function performs a single step of a hierarchical forward stepwise regression by entering additional term(s) to a model already created by ihstep or fhstep. If an interaction or quadratic term is entered first, the parent main effects are also entered into the model. This function is called by HierAFS.R

Usage

fhstep(y,des,m,c,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 i.e., letters of the alphabet. The m three-level factors always preceed the c two-level factors in the design.

m

input - this is an integer equal to the number of three-level factors in the design

c

input - this is an integer equal to the number of two-level factors in the design. Note m+c must be equal to the number of columns of des.

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 entered in the model at this step.

Author(s)

John Lawson


daewr documentation built on Sept. 9, 2023, 9:06 a.m.