lr.multcomp: Comparison of several simple linear least rectangles regression lines
Description
Compare confidence intervals of parameters of several simple linear least rectangles regression lines. No test is performed, the function just compares confidence intervals and returns 'equal' or 'unequal'.
Usage
lr.multcomp(formula, data, conf.level = 0.95)
Arguments
formula
a formula of the form y ~ x | f, where y and x give the y and x variable, respectively, and f is a factor giving levels to be compared.
data
an optional data frame containing the variables in the formula formula. By default the variables are taken from environment(formula).
conf.level
confidence level.
Value
data.namea character string giving the name(s) of the data.
conf.levelconfidence level.
n.regnumber of regression lines.
interceptsintercept and confidence interval of each regression line.
slopesslope and confidence interval of each regression lines.
x <- rep(1:30,3)
y <- c(1:30+rnorm(30,0,3),seq(10,35,25/29)+rnorm(30,0,3),seq(-27,0,27/29)+rnorm(30,0,3))
fact <- gl(3,30,labels=LETTERS[1:3])
lr.multcomp(y~x|fact)