af.model | R Documentation |
Statistical model based on the most relevant predictors as chosen using a stepwise procedure.
af.model(formula, data, direction = "top", model = lm, scope = NULL, ...)
formula |
A formula specifying the criterion and its relation to all predictors possibly relevant. |
data |
Numeric data.frame. |
direction |
Character element specifying the stepwise procedure to be applied (besides "forward", "backward" or "both", possible values are "none", "adaptive", "complete" or "top". It's also possible to add a number after "top" (e.g. "top 3") in order to specify the maximum number of predictors to be examined). Defaults to "top". |
model |
Function of an approproate class. Defaults to lm. |
This function fits a statistical model based on the most relevant predictors as chosen using a stepwise procedure.
af.hclust(data.frame(x=rnorm(100),y=rnorm(100)+scale(1:100),z=rnorm(100)+scale(1:100)));
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.