powered by
pocre
Plot the regression coefficients, and the loadings of all components for a fitted model by POCRE.
# S3 method for pocre plot(x, x.id = NA, which=1:2, cex=.5, ...)
a pocre object, i.e., the result from pocre.
a vector indicating the indices or positions of the covariates in the original data.
1 for plotting the regression coefficients, 2 for plotting the loadings of all components.
A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default, see par.
additional arguments accepted by ggplot.
Zhang D (2018). R package POCRE: Exploring high-dimensional data via supervised dimension reduction. Manuscript.
Zhang D, Lin Y, and Zhang M (2009). Penalized orthogonal-components regression for large p small n data. Electronic Journal of Statistics, 3: 781-796.
pocre, plot.pocrepath, pocrepath.
plot.pocrepath
pocrepath
# NOT RUN { data(simdata) xx <- scale(as.matrix(simdata[,-1])) yy <- scale(as.matrix(simdata[,1])) ##Fit with pocre() pres <- pocre(yy, xx, lambda=0.9) # plot(pres,which=1) plot(pres) # }
Run the code above in your browser using DataLab