Description Usage Arguments Value Examples
The function ridgereg
takes a formula object, a
data.frame
and a penalty parameter lambda
as arguments, and returns a ridgereg object as an S3 class.
It performs ordinary least squares or QR decomposition to calculate different statistics.
1 |
formula |
a formula, like y~x |
data |
a data frame |
lambda |
an integer specifying the regularization penalty |
QR |
use QR decomposition if TRUE, else OLS |
A ridgereg class object
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.