Learn R Programming

smcure (version 2.1)

smcure: Title

Description

Title

Usage

smcure(
  formula,
  cureform,
  offset = NULL,
  data,
  na.action = na.omit,
  model = c("aft", "ph"),
  link = "logit",
  Var = TRUE,
  emmax = 50,
  eps = 1e-07,
  nboot = 100
)

Arguments

formula

a formula object

cureform

specifies the variables in the incidence

offset

variable(s) with coefficient 1 in PH model or AFT model

data

a data.frame in which to interpret the variables named in the formula and cureform

na.action

a missing-data filter function. By default na.action = na.omit

model

specifies your model ph or aft

link

incidence part

Var

By default Var = TRUE

emmax

maximum iteration number

eps

convergence criterion

nboot

number of bootstrap sampling

Value

a smcure object

Examples

Run this code
# NOT RUN {
data(e1684)
pd <- smcure(Surv(FAILTIME,FAILCENS)~TRT+SEX+AGE,
cureform=~TRT+SEX+AGE,data=e1684,model="ph",
Var = FALSE)
printsmcure(pd,Var = FALSE)
# }

Run the code above in your browser using DataLab