Process data to fit model with LMMsolver
Source:R/prepare_data_LMMsolver.R
prepare_data_LMMsolver.Rd
Process 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_u
A vector of bins extremes for the time scaleu
. *midu
A vector with the midpoints of the bins overu
. *nu
The number of bins overu
. *bins_s
A vector of bins extremes for the time scales
. *mids
A vector with the midpoints of the bins overs
. *ns
The number of bins overs
.