curve_surv

0th

Percentile

Consonance Functions For Survival Data

Computes thousands of consonance (confidence) intervals for the chosen parameter in the Cox model computed by the 'survival' package and places the interval limits for each interval level into a data frame along with the corresponding p-value and s-value.

Usage
curve_surv(data, x, steps = 10000, table = TRUE)
Arguments
data

Object where the Cox model is stored, typically a list produced by the 'survival' package.

x

Predictor of interest within the survival model for which the consonance intervals should be computed.

steps

Indicates how many consonance intervals are to be calculated at various levels. For example, setting this to 100 will produce 100 consonance intervals from 0 to 100. Setting this to 10000 will produce more consonance levels. By default, it is set to 1000. Increasing the number substantially is not recommended as it will take longer to produce all the intervals and store them into a dataframe.

table

Indicates whether or not a table output with some relevant statistics should be generated. The default is TRUE and generates a table which is included in the list object.

Value

A list with 3 items where the dataframe of values is in the first object, the values needed to calculate the density function in the second, and the table for the values in the third if table = TRUE.

Aliases
  • curve_surv
Examples
# NOT RUN {

library(carData)
Rossi[1:5, 1:10]
library(survival)

mod.allison <- coxph(Surv(week, arrest) ~ fin + age + race + wexp + mar + paro + prio,
  data = Rossi
)
mod.allison

z <- curve_surv(mod.allison, "prio")
# }
Documentation reproduced from package concurve, version 2.5.0, License: GPL-3 | file LICENSE

Community examples

Looks like there are no examples yet.