Description Usage Arguments Value
Retrieves a linear model, if possible.
1 | plGetModel(x, y, no.intercept = T, tryrobust = F)
|
x |
a numeric vector containing the independent variable. |
y |
a numeric vector of same length as x, containing the dependent variable. |
no.intercept |
logical, indicating whether to disable the intersect in the linear model (defaults TRUE, i.e. models must go through the origin) |
tryrobust |
logical, indicating whether to try to fit a robust linear model (see |
Returns the linear model, if the fit was possible, NA otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.