Description Usage Arguments Value Author(s)
Get coefficients
1 2 |
object |
A model object obtained from |
index |
An integer value representing the index of variable whose coefficients are required. |
name |
A string representing the name of variable whose coefficients are required.
Note that if both |
s |
Same as in coef.glmnet. |
exact |
Same as in coef.glmnet. |
... |
Other arguments are passed directly to |
If index
or name
is given, the function returns a list with the one or combination
of the following fields, consisting of coefficients related to the specified variable.
coef.linear
: A coefficient of the linear term. (If any)
coef.OD
: Coefficients of O-dummies. (If any)
coef.UD
: Coefficients of U-dummies. (If any)
coef.LV
: Coefficients of L-variables. (If any)
If both index
and name
are not given, the function returns entire coefficients
corresponding to the internal designed matrix.
Kenji Kondo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.