dqmix: Estimate the random effect distribution of the flexible mixed...

Description Usage Arguments Author(s) References See Also Examples

View source: R/nbinDPmix_C.R

Description

Given the output of the lmeNBBayes, this function estimate the posterior density of the random effect at grids.

Usage

1
dqmix(weightH1, aGs, rGs, alphas = seq(0, 0.99, 0.01), dens = TRUE) 

Arguments

weightH1

A B by M matrix, containing the probability components of the infinite mixture of beta distribution. The output of lmeNBBayes.

aGs

A B by M matrix, containing the shape1 parameters of the infinite mixture of beta distribution. The output of lmeNBBayes.

rGs

A B by M matrix, containing the shape2 parameters of the infinite mixture of beta distribution. The output of lmeNBBayes.

alphas

The grids of points at which the density is evaluated. Must be the points within 0 and 1.

dens

If TRUE, the density estimate of the random effect is return, if FALSE then the quantiles of the random effects are estimated.

Author(s)

Kondo, Y.

References

Kondo, Y., Zhao, Y. and Petkau, A.J., "A flexible mixed effect negative binomial regression model for detecting unusual increases in MRI lesion counts in individual multiple sclerosis patients".

See Also

lmeNBBayes getDIC

Examples

1
## See the examples of function nbinDP

lmeNBBayes documentation built on May 1, 2019, 7:58 p.m.

Related to dqmix in lmeNBBayes...