plot.compCL: Plot solution paths from a '"compCL"' object.

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

View source: R/tools.R

Description

Produce a coefficient profile plot from a fitted "compCL" object.

Usage

1
2
## S3 method for class 'compCL'
plot(x, xlab = c("lam", "norm"), label = FALSE, ...)

Arguments

x

fitted "compCL" model.

xlab

what is on the X-axis. "lam" plots against the log-lambda sequence (default) and "norm" against the L1-norm of the coefficients.

label

if TRUE, label the curve with the variable sequence numbers. Default is FALSE.

...

other graphical parameters.

Details

A coefficient profile plot for the compositional predictors is produced.

Value

No return value. Side effect is a base R plot.

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 print, predict and coef methods for "compCL" object.

Examples

1
2
3
4
5
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)
plot(Comp_fit)
plot(Comp_fit, xlab = "norm", label = TRUE)

Compack documentation built on July 1, 2020, 10:26 p.m.