rline: Resistant line

Description Usage Arguments Value Author(s) Examples

Description

Fits Tukey's resistant line of form a + b (x - xC).

Usage

1
rline(formula, df, iter=1)

Arguments

formula

formula for line of form y ~ x

df

data frame

iter

number of iterations of algorithm

Value

a

value of intercept a

b

value of slope b

xC

value of xC

half.slope.ratio

value of half slope ratio after one iteration

residual

vector of residuals

spoints.x

vector of summary x coordinates

spoints.y

vector of summary y coordinates

Author(s)

Jim Albert

Examples

1
2
3
df <- data.frame(x = 1:10,
                 y = 3 * (1:10) + rnorm(10))
fit <- rline(y ~ x, df, iter=5)

bayesball/LearnEDAfunctions documentation built on Sept. 20, 2020, 2:45 p.m.