Learn R Programming

ALSM (version 0.1.9)

model.s: Criteria for Model Selection

Description

SSEp, R2.p, R2.adj.p, Cp, AICp, SBCp and PRESSP Values for All Possible Regression Modes

Usage

model.s(x,y)

Arguments

x
matrix of predictors

y
response vector

References

Michael H. Kutner; Christopher J. Nachtsheim; John Neter; William Li. Applied Linear Statistical Models Fifth Edition .chapter 9

Examples

Run this code

### table 9.2, page 353
library("leaps")
model.s(SurgicalUnit[,1:4],SurgicalUnit[,10])

Run the code above in your browser using DataLab