Description Usage Arguments Details Value Note Author(s) References See Also Examples
Fit a linear ordinary least square regression by minimising the residuals in a horizontal direction.
1 |
data |
a data set (data frame or matrix). |
xcol |
a numeric vector to specify the X columns or a character vector with the column names. |
ycol |
a numeric vector to specify the Y columns or a character vector with the column names. |
conf.level |
a numeric value for the confidence level (expressed between 0 and 1). |
The data argument is mandatory while other arugments are optional.
A list including the following elements:
Ellipse.OLSh |
a two columns matrix with the coordinates of the joint confidence interval (confidence region) for the parameters (β, α). |
Estimate.OLSh |
a table (data frame) with the estimates of the intercept and the slope, standard error, confidence interval and pvalue (null hypothesis: slope = 1, intercept = 0). |
The default value for xcol (ycol) is 1 (2) for the 1st (2nd) column. The confidence region for the OLSh parameters is 'distorted' as it results from the OLSv confidence region (ellipse).
Bernard G FRANCQ
Francq BG, Govaerts BB. Measurement methods comparison with errors-in-variables regressions. From horizontal to vertical OLS regression, review and new perspectives. Chemometrics and Intelligent Laboratory Systems 2014; 134:123-139.
Francq BG, Govaerts BB. Hyperbolic confidence bands of errors-in-variables regression lines applied to method comparison studies. Journal de la Societe Francaise de Statistique 2014; 155(1):23-45.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.