curve_predict: fit and predict the survival function

Description Usage Arguments Value

View source: R/functions.R

Description

fit and predict the survival function

Usage

1
2
curve_predict(model, covariate, dataset = vetran, family = "exp",
  futuretime = 1)

Arguments

model

a Surv(time, status) object

covariate

it can be 1 if all covariates are included, or it can be a single covariate

dataset

it is the dataset we use

family

the paramatric distribution, assumed distribution for y variable.

futuretime

the time we want to predict

Value

the predicted value of the survival function


LittleBeannie/demo documentation built on Aug. 12, 2020, 8:17 p.m.