Learn R Programming

RVAideMemoire (version 0.9-6)

lr.multcomp: Comparison of 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 return 'equal' or 'unequal'.

Usage

lr.multcomp(x, y, fact, conf.level = 0.95)

Arguments

x
numeric vector (variable drawn in abscissa).
y
numeric vector (variable drawn in ordinate).
fact
factor (groups).
conf.level
confidence level.

Value

  • conf.levelconfidence level.
  • n.regnumber of regression lines.
  • interceptsintercept and confidence interval of each regression line.
  • slopesslope and confidence interval of each regression lines.
  • compdata.frame of results.

See Also

least.rect

Examples

Run this code
covariable<-rep(1:30,3)
variable<-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))
factor<-as.factor(rep(LETTERS[1:3],each=30))
lr.multcomp(variable,covariable,factor)

Run the code above in your browser using DataLab