simpmod {inecolr}R Documentation

Model simplification

Description

Simplifies models based on the residual sum of squares

Usage

simpmod(M, alpha=0.05)

Arguments

M

A lm, glm.

alpha

Crital value to reject the null hypothis when less than or equal to 0.05, the default value..

Value

Returns a list of simplification steps up to the sipliest model in a list object.

Author(s)

Guevara, R., roger.guevara@inecol.mx

References

Crawley, the R book

Examples

y <- sort(rnorm(20, 5, 2))
x <- c(1:20)
M <- lm(y~x)
simpmod(M)

[Package inecolr version 0.1.0 Index]