Learn R Programming

cutpoint (version 1.0.0)

cp_estsum: Summarise cutpoint estimation

Description

Writes the summary of the cutpoint estimation to the console.

Usage

cp_estsum(cpobj, verbose = TRUE)

Value

Summary of the cutpoint estimation.

Arguments

cpobj

list, contains variables for cp_estsum function

verbose

logical value: if TRUE the summary of the cutpoint estimation is writing to the console. Default is TRUE.

See Also

cp_est() for main function of the package.

Examples

Run this code
# \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