lm2: Perform a simple linear regression model

Description Usage Arguments See Also Examples

View source: R/lm2.R

Description

Perform a simple linear regression model by automatically discarding outliers.

Usage

1

Arguments

formula

an object of class of formula, see ?lm for detail

data

an optional data frame, see ?lm for detail

...

additional arguments to be passed to lm, see ?lm for detail

See Also

lm,print.infl,influence.measures

Examples

1
2
3
4
y <- rnorm(100)
x <- rnorm(100)
d <- data.frame(x=x,y=y)
r <- lm2(y~x, d)

lixiangchun/lxctk documentation built on May 21, 2019, 6:44 a.m.