lmXy(BestReg)R Documentation

Fits a regression of last column on rest in a dataframe

Description

This is a utility function used by the main function SubsetReg.

Usage

lmXy(Xy.df)

Arguments

Xy.df dataframe containing the design matrix X and the output variable y. All columns must be named.

Value

an lm object

Author(s)

A.I. McLeod

See Also

lm, BestReg

Examples

data(longley)
lmXy(longley)

[Package BestReg version 1.0 Index]