computes the multinormal density of a given continuous measurement vector for all classes
computes the density of an individual's continuous measurement vector for all latent classes, eventually taking covariates into account. This is an internal function not meant to be called by the user.
a list of the multinormal density parameters: means
a list of integers indicating which covariates (taken from
For each class
k, the function computes the multinormal density with means
param$mu[[k]] and variances-covariances matrix
param$sigma[[k]] for the individual's measurement
vector. Treatment of covariates is not yet implemented, and any
provided covariate value will be ignored.
The function returns a vector
dens of length
dens[k] is the density of the measurements if the individual belongs to class
1 2 3 4 5 6 7 8
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.