mklr | R Documentation |
Univariate linear regression with error estimates for regression coefficients.
mklr(x, y)
x |
A vector of predictors. |
y |
A vector of observations. |
The mathematics behind the calculation of the error estimates of the regression coefficients are based on the Dover's book by A.A.Sveshnikov "Problems in Probability Theory,...", p.326, –AK, Feb 27 2004. Performs univariate linear regression of y on x: y = r0 + r1*x
Returns a list with the estimates (coefficients: r0, r1, and their standard errors: sig0 and sig1).
J. Baño-Medina, S. Herrera
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.