Process data to fit model with LMMsolver
Source:R/prepare_data_LMMsolver.R
prepare_data_LMMsolver.RdProcess data to fit model with LMMsolver
Arguments
- Y
A matrix (or 3d-array) of event counts of dimension nu by ns (or nu by ns by n).
- R
A matrix (or 3d-array) of exposure times of dimension nu by ns (or nu by ns by n).
- Z
(optional) A regression matrix of covariates values of dimensions n by p.
- bins
a list with the specification for the bins. This is created by the function
prepare_data. If a list prepared externally from such function if provided, it should contain the following elements: *bins_uA vector of bins extremes for the time scaleu. *miduA vector with the midpoints of the bins overu. *nuThe number of bins overu. *bins_sA vector of bins extremes for the time scales. *midsA vector with the midpoints of the bins overs. *nsThe number of bins overs.