GLAM_2d_no_covariates() fits a GLAM for the hazard with two time
scales, without covariates.
Usage
GLAM_2d_no_covariates(
R,
Y,
Bu,
Bs,
Wprior = NULL,
P,
ridge = 0,
control_algorithm = list(maxiter = 20, conv_crit = 1e-05, verbose = FALSE)
)Arguments
- R
A matrix of exposure times of dimension nu by ns.
- Y
A matrix of event counts of dimension nu by ns.
- Bu
A matrix of B-splines for the
utime scale of dimension nu by cu.- Bs
A matrix of B-splines for the
stime scale of dimension ns by cs.- Wprior
An optional matrix of a-priori weights.
- P
The penalty matrix of dimension cucs by cucs.
- ridge
A ridge penalty parameter: default is 0.
- control_algorithm
A list with optional values for the parameters of the iterative processes:
maxiterThe maximum number of iteration for the IWSL algorithm. Default is 20.conv_critThe convergence criteria, expressed as difference between estimates at iteration i and i+1. Default is1e-5.verboseA Boolean. Default isFALSE. IfTRUEmonitors the iteration process.
Value
A list with the following elements:
AlphaThe matrix of estimated P-splines coefficients of dimension cu by cs.Cov_alphaThe variance-covariance matrix of theAlphacoefficients, of dimension cucs by cucs.Eta0The matrix of values of the baseline linear predictor (log-hazard) of dimension nu by ns.HThe hat-matrix.devianceThe deviance.edThe effective dimension of the model.aicThe value of the AIC.bicThe value of the BIC.Bbasesa list with the B-spline basesBuandBs.