fitAll: All subset regression

Description Usage Arguments Value Examples

Description

It fits all subset regression, allowing interaction and categorical covariates. The code borrows heavily from package meifly.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
fitAll(x, ...)

## S3 method for class 'lm'
fitAll(x, data, description = "fitting", progress = TRUE, ...)

## S3 method for class 'lme'
fitAll(x, data, description = "fitting", progress = TRUE, ...)

## S3 method for class 'merMod'
fitAll(x, data, description = "fitting", progress = TRUE,
  ...)

Arguments

x

A model object of one of the classes supported.

data

Data.

description

Text to print for progress bar.

progress

TRUE/FALSE. If TRUE progress bar is shown.

Value

A list with n components. n is the number of models fitted.

Examples

1
2
3
4
## Using fitAll with formula class

lm0=lm(conc~uptake*Treatment,CO2)
allreg=fitAll(lm0,CO2)

kohleth/kmisc documentation built on May 20, 2019, 12:53 p.m.