mod.sel: Provide a data.frame of useful statistics for some models

Description Usage Arguments Value Examples

View source: R/mod.sel.R

Description

This data.frame can be found in Applied Linear Regression Models, Kutner, Chapter 9. Criteria for model selection

Usage

1
mod.sel(x, y, z)

Arguments

x

is a set of independent variables.

y

is a response variable

z

is for nbest in regsubsets. Try several numbers, from 1 to choose(ncol(x),1).

Value

It provides p(number of parameters), SSE, R.squared, R.adj.squared, AIC, BIC and PRESS

Examples

1
2
3
4
library(ALSM)
mod.sel(SurgicalUnit[,1:4],SurgicalUnit[,10],1)
mod.sel(SurgicalUnit[,1:6],SurgicalUnit[,10],2)
mod.sel(BodyFat[,1:3],BodyFat[,4],3)

philyoun/r4phil documentation built on Dec. 4, 2020, 10:12 a.m.