powered by
function that calls the optimization (mle from stats4 package, so use optim), and return a rERR object with the estimation and summary
f_fit_linERR_all(formula, data, id_name, time_name, lag)
Surv(entry_time,exit_time,outcome)~loglin(loglin_var1,..,loglin_varn)+ lin(lin_var1,..,lin_varm)+strata(strat_var1,...strat_varp)
data set returned from f_to_model_data
name of variable containing the names of subjects
name of the time variable
latency period
rERR object with the estimation
# NOT RUN { f_fit_linERR_all(formula,data,id_name,time_name,lag) # }
Run the code above in your browser using DataLab