use_survival_analysis {packDAMipd}R Documentation

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

Description

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

Usage

use_survival_analysis(
  param_to_be_estimated,
  dataset,
  indep_var,
  info_get_method,
  info_distribution,
  covariates,
  timevar_survival,
  cluster_var = NA
)

Arguments

param_to_be_estimated

parameter of interest

dataset

data set to be provided

indep_var

the independent variable (column name in data file)

info_get_method

additional information on methods e.g Kaplan-Meier ot hazard

info_distribution

distribution name eg. for logistic regression -binomial

covariates

list of covariates - calculations to be done before passing

timevar_survival

time variable for survival analysis, default is NA

cluster_var

cluster variable for survival analysis

Details

This function helps to get the parameter values after the survival analysis Takes into account many different methods like KM.FH, Cox proportional etc. and then calls appropriate functions to do the survival analysis

Value

the results of the regression analysis

Examples


data_for_survival <- survival::aml
surv_estimated_aml <- use_survival_analysis("status", data_for_survival,
  "x",
  info_get_method = "parametric", info_distribution = "weibull",
  covariates = NA, "time")


[Package packDAMipd version 1.1.0 Index]