k_max | R Documentation |
Constraint on the maximum number of covariates to be used in the model.
k_max(k)
k |
an positive integer with |
A holistic generalized model constraint, object inheriting from class "hglmc"
.
If an intercept is used, the upper bound on k_{max} + 1
is given by number of columns of the model matrix.
If no intercept is used, the upper bound on k_{max}
is given by number of columns of the model matrix.
Other Constraint-Constructors:
group_equal()
,
group_inout()
,
group_sparsity()
,
include()
,
linear()
,
lower()
,
pairwise_sign_coherence()
,
rho_max()
,
sign_coherence()
,
upper()
dat <- rhglm(100, c(1, 2, -3, 4, 5, -6))
hglm(y ~ ., constraints = k_max(3), data = dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.