plot_prediction_parametric_survival {packDAMipd}R Documentation

Plot the predicted survival curves for covariates keeping the others fixed

Description

Plot the predicted survival curves for covariates keeping the others fixed

Usage

plot_prediction_parametric_survival(
  param_to_be_estimated,
  indep_var,
  covariates,
  dataset,
  fit,
  timevar_survival
)

Arguments

param_to_be_estimated

parameter to be estimated

indep_var

variable for which the levels have to be identified

covariates

the covariates

dataset

the dataset where these variables contain

fit

the fit result survreg

timevar_survival

time variable from the dataset

Value

plot

Examples


data_for_survival <- survival::lung
surv_estimated <- use_parametric_survival("status", data_for_survival,
"sex",
info_distribution = "weibull",covariates = c("ph.ecog"),"time")
plot_prediction_parametric_survival("status", "sex",
covariates = c("ph.ecog"),data_for_survival, surv_estimated$fit, "time")


[Package packDAMipd version 1.1.0 Index]