Learn R Programming

RVAideMemoire (version 0.9-29-2)

summary.least.rect: Summary method for least rectangles linear regression

Description

Summary method for least rectangles linear regression. Returns the regression coefficients, the test(s) for equality of the slope(s) to a given value and information about the correlation between the two variables (value, confidence interval and significativiy).

Usage

## S3 method for class 'least.rect':
summary(object, ...)

Arguments

object
regression fitted by least.rect.
...
further arguments.

See Also

least.rect

Examples

Run this code
x <- 1:30+rnorm(30,0,3)
y <- 1:30+rnorm(30,0,3)
regression1 <- least.rect(y~x)
summary(regression1)

x2 <- c(1:30,1:30)
y2 <- c(1:30+rnorm(30,0,3),seq(10,22,12/29)+rnorm(30,0,3))
fact <- gl(2,30,labels=LETTERS[1:2])
regression2 <- least.rect(y2~x2|fact)
summary(regression2)

Run the code above in your browser using DataLab