Description Usage Arguments Value Examples
The function fits POIS-glment and returns the entire regularization path. No cross-validation is used.
1 2 3 4 5 6 7 8 9 10 | fit_pois_glmnet_nocv(
z,
r = max(z),
nlam = 12,
lambda = 10^seq(-4, -1.3, length.out = nlam),
alpha = 1,
use_parallel = F,
ncores = 7,
symmetrize = TRUE
)
|
z |
is a potentially sparse count array of dimensions: (sample size) x (data dimension). The entries of z should take values in 0,1,2,...,r. |
r |
maximum number of levels (K). Defaults to r = max(z). |
nlam |
number of regularization parameters (lambda) to use; ignored if lambda is provided. |
lambda |
the vector of regularization parameters to use |
A list of fitted POIS models.
1 | out = fit_pois_glmnet_nocv(amazon, lambda = 10^seq(-4,-1.3, length.out = 5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.