af.model: Function af.model

af.modelR Documentation

Function af.model

Description

Statistical model based on the most relevant predictors as chosen using a stepwise procedure.

Usage

af.model(formula, data, direction = "top", model = lm, scope = NULL, ...)

Arguments

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.

Details

This function fits a statistical model based on the most relevant predictors as chosen using a stepwise procedure.

Examples

af.hclust(data.frame(x=rnorm(100),y=rnorm(100)+scale(1:100),z=rnorm(100)+scale(1:100)));

AndreasFischer1985/quantqual documentation built on June 20, 2022, 4:55 p.m.