Description Usage Arguments Value Examples
View source: R/f_04_fit_linERR.r
function that calls the optimization (mle from stats4 package, so use optim), and return a rERR object with the estimation and summary
1 2  | f_fit_linERR(formula, data, rsets, n_lin_vars, n_loglin_vars, id_name,
  time_name)
 | 
formula | 
 Surv(entry_time,exit_time,outcome)~loglin(loglin_var1,..,loglin_varn)+  | 
data | 
 data set returned from f_to_model_data  | 
rsets | 
 list of risksets, output of f_risksets  | 
n_lin_vars | 
 number of linear variables (attribute of the to_model_data)  | 
n_loglin_vars | 
 number of loglinear varaibles (attribute of the to_model_data)  | 
id_name | 
 name of variable containing the names of subjects  | 
time_name | 
 name of the time variable  | 
rERR object with the estimation
1  | f_fit_linERR(formula,data,rsets,n_lin_vars,n_loglin_vars,id_name,time_name)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.