k_max {holiglm}R Documentation

Constraint on the Number of Covariates

Description

Constraint on the maximum number of covariates to be used in the model.

Usage

k_max(k)

Arguments

k

an positive integer with k \leq k_{max} giving the maximum number of covariates to be used in the model.

Value

A holistic generalized model constraint, object inheriting from class "hglmc".

Note

See Also

Other Constraint-Constructors: group_equal(), group_inout(), group_sparsity(), include(), linear(), lower(), pairwise_sign_coherence(), rho_max(), sign_coherence(), upper()

Examples

dat <- rhglm(100, c(1, 2, -3, 4, 5, -6))
hglm(y ~ ., constraints = k_max(3), data = dat)

[Package holiglm version 1.0.0 Index]