This function performs Tukey's single degree of freedom test for interaction in an unreplicated two-factor design

Share:

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.

Usage

1
fhstep(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.

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

Examples

1
2
3
4
5
6
7
library(daewr)
des <- DefScreen( m = 8 )
pd<-c(5.35,4.4,12.91,3.79,4.15,14.05,11.4,4.29,3.56,11.4,10.09,5.9,9.54,4.53,3.919,8.1,5.35)
trm<-ihstep(pd,des)
trm<-fhstep(pd,des,trm)
trm<-fhstep(pd,des,trm)
trm<-fhstep(pd,des,trm)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.