print.compCL: Print a '"compCL"' object.

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/tools.R

Description

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

Usage

1
2
## 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

1
2
3
4
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)

jiji6454/compReg documentation built on Feb. 5, 2021, 2:20 p.m.