
PRSP
object.
Plot the cross-validated modal trace curves of covariate importance and covariate usage of the
pre-selected covariates specified by user at each iteration of the peeling sequence
(inner loop of our PRSP algorithm).plot_boxtrace(object,
main = NULL,
xlab = "Box Mass",
ylab = "Covariate Range (centered)",
toplot = object$used,
center = TRUE,
scale = FALSE,
col.cov,
lty.cov,
lwd.cov,
col = 1,
lty = 1,
lwd = 1,
cex = 1,
add.legend = FALSE,
text.legend = NULL,
device = NULL,
file = "Covariate Trace Plots",
path=getwd(),
horizontal = FALSE,
width = 8.5,
height = 8.5, ...)
PRSP
as generated by the main function sbh
.Character
vector
. Main Title. Defaults to.Character
vector
. X axis label. Defaults to "Box Mass".Character
vector
. Y axis label. Defaults to "Covariate Range (centered)".Numeric
vector
. Which of the pre-selected covariates to plot (in reference to the original index of covariates).
Defaults to covariates used for peeling.Logical
scalar. Shall the data be centered?. Defaults to TRUE
.Logical
scalar. Shall the data be scaled? Defaults to FALSE
.Integer
vector
. Line color for the covariate importance curve of each selected covariate.
Defaults to vector of colors of length the number of selected covariates.
The vector is reused cyclically if it is shorter than tInteger
vector
. Line type for the covariate importance curve of each selected covariate.
Defaults to vector of 1's of length the number of selected covariates.
The vector is reused cyclically if it is shorter than the nInteger
vector
. Line width for the covariate importance curve of each selected covariate.
Defaults to vector of 1's of length the number of selected covariates.
The vector is reused cyclically if it is shorter than the Integer
scalar. Line color for the covariate trace curve.
Defaults to 1.Integer
scalar. Line type for the covariate trace curve.
Defaults to 1.Integer
scalar. Line width for the covariate trace curve.
Defaults to 1.Integer
scalar. Symbol expansion used for titles, legends, and axis labels. Defaults to 1.Logical
scalar. Should the legend be added to the current open graphics device?. Defaults to FALSE
.Character
vector
of legend content. Defaults to NULL
.Logical
scalar. Orientation of the printed image. Defaults to FALSE
, that is potrait orientation.Numeric
scalar. Width of the graphics region in inches. Defaults to 8.5.Numeric
scalar. Height of the graphics region in inches. Defaults to 8.5.device
.#===================================================
# Loading the library and its dependencies
#===================================================
library("PRIMsrc")
#=================================================================================
# Simulated dataset #1 (n=250, p=3)
# Replicated Combined Cross-Validation (RCCV)
# Peeling criterion = LRT
# Optimization criterion = LRT
#=================================================================================
CVCOMBREP.synt1 <- sbh(dataset = Synthetic.1,
cvtype = "combined", cvcriterion = "lrt",
B = 1, K = 5,
vs = TRUE, cpv = FALSE, probval = 0.5,
arg = "beta=0.05,
alpha=0.1,
minn=10,
L=NULL,
peelcriterion="lr"",
parallel = FALSE, conf = NULL, seed = 123)
plot_boxtrace(object = CVCOMBREP.synt1,
main = paste("RCCV trace plots for model #1", sep=""),
xlab = "Box Mass", ylab = "Covariate Range (centered)",
toplot = CVCOMBREP.synt1$used,
center = TRUE, scale = FALSE,
device = NULL, file = "Covariate Trace Plots", path=getwd(),
horizontal = FALSE, width = 8.5, height = 8.5)
Run the code above in your browser using DataLab