plot_prediction_parametric_survival: Plot the predicted survival curves for covariates keeping the...

Description Usage Arguments Value Examples

View source: R/help_parameter_estimation_survival.R

Description

Plot the predicted survival curves for covariates keeping the others fixed

Usage

1
2
3
4
5
6
7
8
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

1
2
3
4
5
6
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")

packDAMipd documentation built on March 3, 2021, 5:07 p.m.