use_fh_survival {packDAMipd}R Documentation

########################################################################### Get the parameter values using the survival analysis method FH

Description

########################################################################### Get the parameter values using the survival analysis method FH

Usage

use_fh_survival(
  param_to_be_estimated,
  dataset,
  indep_var,
  covariates,
  timevar_survival
)

Arguments

param_to_be_estimated

parameter of interest

dataset

data set to be provided

indep_var

the independent variable (column name in data file)

covariates

list of covariates

timevar_survival

time variable for survival analysis, default is NA

Details

This function is for survival analysis using FH. This plots the cumulative survival function for each combination of covariate If the covariate is numeric, R takes it as different levels. The plot uses the returned list of survfit and extracts the time and the strata from summary of the fit (implemented in plot_return_survival_curve function)

Value

the results of the regression analysis

Examples


data_for_survival <- survival::aml
surv_estimated <- use_fh_survival("status", data_for_survival, "x",
  covariates = NA, "time"
)


[Package packDAMipd version 1.1.0 Index]