get_aic_fit_2d {TwoTimeScales} | R Documentation |
Return the AIC of 2ts model
Description
get_aic_fit_2d()
fits the 2ts model with or without individual
level covariates and it returns the AIC of the model.
See also fit2tsmodel_ucminf()
and fit2ts()
.
Usage
get_aic_fit_2d(
lrho,
R,
Y,
Z = NULL,
Bu,
Bs,
Iu,
Is,
Du,
Ds,
Wprior = NULL,
ridge = 0,
control_algorithm = list(maxiter = 20, conv_crit = 1e-05, verbose = FALSE, monitor_ev =
FALSE)
)
Arguments
lrho |
A vector of two elements, the initial values for |
R |
A matrix (or 3d-array) of exposure times of dimension nu by ns (or nu by ns by n). |
Y |
A matrix (or 3d-array) of event counts of dimension nu by ns (or nu by ns by n). |
Z |
(optional) A regression matrix of covariates values of dimensions n by p. |
Bu |
A matrix of B-splines for the |
Bs |
A matrix of B-splines for the |
Iu |
An identity matrix of dimension nbu by nbu. |
Is |
An identity matrix of dimension nbs by nbs. |
Du |
The difference matrix over |
Ds |
The difference matrix over |
Wprior |
An optional matrix of a-priori weights. |
ridge |
A ridge penalty parameter: default is 0. This is useful when, in
some cases the algorithm shows convergence problems. In this case, set to a small
number, for example |
control_algorithm |
A list with optional values for the parameters of the iterative processes:
|
Value
The aic
value of the fitted model.