GLMM_longitDA {mixAK} | R Documentation |
Discriminant analysis for longitudinal profiles based on fitted GLMM's
Description
The idea is that we fit (possibly different) GLMM's for data in training
groups using the function GLMM_MCMC
and then use the fitted
models for discrimination of new observations. For more details we
refer to Komárek et al. (2010).
Currently, only continuous responses for which linear mixed models are assumed are allowed.
Usage
GLMM_longitDA(mod, w.prior, y, id, time, x, z, xz.common=TRUE, info)
Arguments
mod |
a list containing models fitted with the
|
w.prior |
a vector with prior cluster weights. The length of this
argument must be the same as the length of argument |
y |
vector, matrix or data frame (see argument |
id |
vector which determines clustered observations (see also
argument |
time |
vector which gives indeces of observations within
clusters. It appears (together with |
x |
see |
z |
see |
xz.common |
a logical value. If If |
info |
interval in which the function prints the progress of computation |
Details
This function complements a paper Komárek et al. (2010).
Value
A list with the following components:
ident |
ADD DESCRIPTION |
marg |
ADD DESCRIPTION |
cond |
ADD DESCRIPTION |
ranef |
ADD DESCRIPTION |
Author(s)
Arnošt Komárek arnost.komarek@mff.cuni.cz
References
Komárek, A., Hansen, B. E., Kuiper, E. M. M., van Buuren, H. R., and Lesaffre, E. (2010). Discriminant analysis using a multivariate linear mixed model with a normal mixture in the random effects distribution. Statistics in Medicine, 29(30), 3267–3283.
See Also
Examples
### WILL BE ADDED.