least.rect(formula, data=NULL, conf.level = 0.95, theo = 1)
y ~ x
, where y
and x
give the y and x variable, respectively.formula
. By default the variables are taken from environment(formula)
.cor.test
x<-1:30+rnorm(30,0,3)
y<-1:30+rnorm(30,0,3)
least.rect(y~x)
Run the code above in your browser using DataLab