Description Usage Arguments Details Value Author(s) References See Also Examples

Stepwise regression, starting from the empty model, with scope to the full model

1 2 |

`formula` |
formula, like y~X, i.e., dependent~response variables |

`data` |
data frame to be analyzed |

`k` |
sensible values are log(nrow(x)) for BIC or 2 for AIC; if not provided -> BIC |

`startM` |
optional, the starting model; provide a binary vector |

`maxTime` |
maximal time to be used for algorithm |

`direction` |
either "forward" or "backward" or "both" |

`writeFile` |
if TRUE results are stored in the file "resname" |

`resname` |
filename where results are stored, only if writeFile is TRUE |

`maxsteps` |
maximum number of steps |

`...` |
additional plot arguments |

This function is similar to the function `step`

for stepwise
regression. It is especially designed for cases where the number of regressor
variables is much higher than the number of objects. The formula for the full model
(scope) is automatically generated.

`usedTime` |
time that has been used for algorithm |

`bic` |
BIC values for different models |

`models` |
matrix with no. of models rows and no. of variables columns, and 0/1 entries defining the models |

Leonhard Seyfang and (marginally) Peter Filzmoser <P.Filzmoser@tuwien.ac.at>

K. Varmuza and P. Filzmoser: Introduction to Multivariate Statistical Analysis in Chemometrics. CRC Press, Boca Raton, FL, 2009.

1 2 3 4 5 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.