cph_survival_prob: A wrapper for survival probabilities with cph models

Description Usage Arguments Value

View source: R/aaa_survival_prop.R

Description

A wrapper for survival probabilities with cph models

Usage

1
cph_survival_prob(x, new_data, .times, output = "surv", conf.int = 0.95, ...)

Arguments

x

A model from coxph().

new_data

Data for prediction

.times

A vector of integers for prediction times.

output

One of "surv", "conf", or "haz".

conf.int

The confidence level

...

Options to pass to survival::survfit()

Value

A nested tibble


EmilHvitfeldt/survnip documentation built on April 8, 2021, 3:52 a.m.