f_fit_linERR_all: fit Excess Relative Risk Model

Description Usage Arguments Value Examples

Description

function that calls the optimization (mle from stats4 package, so use optim), and return a rERR object with the estimation and summary

Usage

1
f_fit_linERR_all(formula, data, id_name, time_name, lag)

Arguments

formula

Surv(entry_time,exit_time,outcome)~loglin(loglin_var1,..,loglin_varn)+
lin(lin_var1,..,lin_varm)+strata(strat_var1,...strat_varp)

data

data set returned from f_to_model_data

id_name

name of variable containing the names of subjects

time_name

name of the time variable

lag

latency period

Value

rERR object with the estimation

Examples

1
## Not run:  f_fit_linERR_all(formula,data,id_name,time_name,lag)

fbr600/rERR documentation built on May 7, 2019, 9:36 a.m.