estimateStat | R Documentation |
Estimate goodness of fit statistic of penalized linear regression models. Works with different goodness of fit statistic functions.
estimateStat(x, y, u, s, method = "cv", nfold = 10, statistic = rsq, alpha = 0)
x |
input matrix, of dimension nobs x nvars; each row is an observation
vector. Can be in sparse matrix format (inherit from class
|
y |
response variable. Quantitative for |
u |
offset vector as in |
s |
user supplied lambda. |
method |
currently only cross-validation is implemented. |
nfold |
number of fold to use in cross-validation. |
statistic |
function computing goodness of fit statistic. Should accept
|
alpha |
The elasticnet mixing parameter, with
|
numeric vector of statistic
estimates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.