ihstep | R Documentation |
This function performs the first step of a hierarchical forward stepwise regression. 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
ihstep(y,des,m,c)
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. |
returned vector of terms entered in the model at this step.
John Lawson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.