# \donttest{
# Example
# Writes the summary to the console
# The data set data1 is included in this package
cpobj <- cp_est(
cpvarname = "biomarker",
covariates = c("covariate_1", "covariate_2"),
data = data1,
nb_of_cp = 2,
plot_splines = FALSE,
print_res = FALSE
)
cp_estsum(cpobj, verbose = TRUE)
# }
Run the code above in your browser using DataLab