bmcure: Main function to estimate parameters and print out

Description Usage Arguments Value

View source: R/bmcure.R

Description

Main function to estimate parameters and print out

Usage

1
2
bmcure(formula, cureform, link, data, table1, table2,
  na.action = na.omit, method = "parametric", dis = "weibull")

Arguments

formula

A survival formula based on the Surv() function, including survival time, right censoring indicator and covariates.

cureform

The covariates included in the cure link function.

link

The type of cure rate link function, including "logit","probit", and "cloglog".

data

The data set needed.

table1

US 2015 Life Table for female.

table2

US 2015 Life Table for male.

na.action

The action to deal with NA/missing values.

method

The method to estimate parameters, including "semiparametric","flexible" and "parametric".

dis

If "parametric" is specified for method, then dis must be provided, such as "exp","weibull","llogis","gamma","gompertz","lnorm" and "gengamma".

Value

None


gygygy1989/psmcure documentation built on March 4, 2020, 6:05 p.m.