x: Matrix of training data used for fitting the model; on which to run the calibration.
time: Survival time. Must be of the same length with the number of rows as x.
event: Status indicator, normally 0 = alive, 1 = dead. Must be of the same length with the number of rows as x.
model.type: Model type to calibrate. Could be one of "lasso", "alasso", "flasso", "enet", "aenet", "mcp", "mnet", "scad", or "snet".
alpha: Value of the elastic-net mixing parameter alpha for enet, aenet, mnet, and snet models. For lasso, alasso, mcp, and scad models, please set alpha = 1. alpha=1: lasso (l1) penalty; alpha=0: ridge (l2) penalty. Note that for mnet and snet models, alpha can be set to very close to 0 but not 0 exactly.
lambda: Value of the penalty parameter lambda to use in the model fits on the resampled data. From the Cox model you have built.
pen.factor: Penalty factors to apply to each coefficient. From the built adaptive lasso or adaptive elastic-net model.
gamma: Value of the model parameter gamma for MCP/SCAD/Mnet/Snet models.
lambda1: Value of the penalty parameter lambda1 for fused lasso model.
lambda2: Value of the penalty parameter lambda2 for fused lasso model.
method: Calibration method. Options including "fitting", "bootstrap", "cv", and "repeated.cv".
boot.times: Number of repetitions for bootstrap.
nfolds: Number of folds for cross-validation and repeated cross-validation.
rep.times: Number of repeated times for repeated cross-validation.
pred.at: Time point at which calibration should take place.
ngroup: Number of groups to be formed for calibration.
seed: A random seed for resampling.
trace: Logical. Output the calibration progress or not. Default is TRUE.