| QRdepCens | R Documentation |
This function estimates the parameters in the model of D'Haen et al. (2025).
QRdepCens(data, hp, var.estimate = FALSE, verbose = TRUE)
data |
Data on which the model should be estimated. Note that the data
should be structured in a specific form: The observed times should be put in
a column named |
hp |
List of hyperparameters to be used, the elements of which will overwrite the default settings. In particular, consider changing:
Other hyperparameters can be changed though it is not recommended. We refer to the source code for the available options. |
var.estimate |
Boolean value indicating whether the variance should be
estimated (via bootstrap). This can take a considerable amount of time.
Default is |
verbose |
Verbosity flag (boolean) indicating whether the results should
be printed to the console. Default is |
The variance estimation procedure could easily be paralelized. However, this is currently not implemented.
D'Haen, M., Van Keilegom, I. and Verhasselt, A. (2025). Quantile regression under dependent censoring with unknown association. Lifetime Data Analysis 31(2):253-299.
# Load the data
data(liver)
# Give standard column names (required!)
colnames(liver) <- c("patient", "Y", "Delta", "X1", "X2", "X3", "X4")
liver <- liver[, c(-1, -6, -7)]
# Run the model
hp <- list(
homoscedastic = FALSE,
test_cop_name = "frank"
)
QRdepCens(liver, hp, var.estimate = FALSE)
# Takes a while if var.estimate = TRUE...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.