print.compCL {Compack}R Documentation

Print a "compCL" object.

Description

print the number of nonzero coefficients for the compositional varaibles at each step along the compCL path.

Usage

## S3 method for class 'compCL'
print(x, digits = max(3, getOption("digits") - 3), ...)

Arguments

x

fitted "compCL" object.

digits

significant digits in printout.

...

not used.

Value

a two-column matrix; the first column DF gives the number of nonzero coefficients for the compositional predictors and the second column Lam gives the corresponding lam values.

Author(s)

Zhe Sun and Kun Chen

References

Lin, W., Shi, P., Peng, R. and Li, H. (2014) Variable selection in regression with compositional covariates, https://academic.oup.com/biomet/article/101/4/785/1775476. Biometrika 101 785-979.

See Also

compCL and coef, predict and plot methods for "compCL" object.

Examples

Comp_data = comp_Model(n = 50, p = 30)
Comp_fit = compCL(y = Comp_data$y, Z = Comp_data$X.comp,
                  Zc = Comp_data$Zc, intercept = Comp_data$intercept)
print(Comp_fit)


[Package Compack version 0.1.0 Index]