Learn R Programming

mixAK (version 5.8)

Multivariate Normal Mixture Models and Mixtures of Generalized Linear Mixed Models Including Model Based Clustering

Description

Contains a mixture of statistical methods including the MCMC methods to analyze normal mixtures. Additionally, model based clustering methods are implemented to perform classification based on (multivariate) longitudinal (or otherwise correlated) data. The basis for such clustering is a mixture of multivariate generalized linear mixed models. The package is primarily related to the publications Komárek (2009, Comp. Stat. and Data Anal.) and Komárek and Komárková (2014, J. of Stat. Soft.) . It also implements methods published in Komárek and Komárková (2013, Ann. of Appl. Stat.) , Hughes, Komárek, Bonnett, Czanner, García-Fiñana (2017, Stat. in Med.) , Jaspers, Komárek, Aerts (2018, Biom. J.) and Hughes, Komárek, Czanner, García-Fiñana (2018, Stat. Meth. in Med. Res) .

Copy Link

Version

Install

install.packages('mixAK')

Monthly Downloads

1,211

Version

5.8

License

GPL (>= 3)

Maintainer

Arnošt Komárek

Last Published

September 16th, 2024

Functions in mixAK (5.8)

Faithful

Old Faithful Geyser Data
Dirichlet

Dirichlet distribution
GLMM_MCMCinit.alpha

Handle init.alpha or init2.alpha argument of GLMM_MCMC function
GLMM_MCMCifit

Initial (RE)ML fits for the GLMM_MCMC function
GLMM_MCMCdata

Data manipulation for the GLMM_MCMC function
BLA

Best linear approximation with respect to the mean square error (theoretical linear regression).
Enzyme

Enzymatic activity in the blood
GLMM_MCMC

MCMC estimation of a (multivariate) generalized linear mixed model with a normal mixture in the distribution of random effects
BsBasis

B-spline basis
GLMM_MCMCinit.eps

Handle init.eps or init2.eps argument of GLMM_MCMC function
GLMM_MCMCprior.b

Handle prior.eps argument of GLMM_MCMC function
Acidity

Acidity index of lakes in North-Central Wisconsin
GLMM_MCMCinit.b

Handle init.b or init2.b argument of GLMM_MCMC function
GLMM_MCMCscale.b

Handle scale.b argument of GLMM_MCMC function
GLMM_MCMCprior.eps

Handle prior.eps argument of GLMM_MCMC function
GLMM_MCMCwrapper

Wrapper to the GLMM_MCMC main simulation.
GLMM_MCMCprior.alpha

Handle prior.alpha argument of GLMM_MCMC function
GLMM_longitDA2

Discriminant analysis for longitudinal profiles based on fitted GLMM's
GLMM_longitDA

Discriminant analysis for longitudinal profiles based on fitted GLMM's
Galaxy

Velocities of distant galaxies
NMixEM

EM algorithm for a homoscedastic normal mixture
MVT

Multivariate Student t distribution
NMixChainsDerived

Create MCMC chains derived from previously sampled values
NMixCluster

Clustering based on the MCMC output of the mixture model
MVN

Multivariate normal distribution
MatMPpinv

Moore-Penrose pseudoinverse of a squared matrix
MatSqrt

Square root of a matrix
MVNmixture

Mixture of (multivariate) normal distributions
NMixChainComp

Chains for mixture parameters
NMixMCMC

MCMC estimation of (multivariate) normal mixtures with possibly censored data.
NMixMCMCinitr

Initial component allocations for the NMixMCMC function
NMixMCMCdata

Data manipulation for the NMixMCMC function
NMixPlugDA

Discriminant analysis based on plug-in estimates from the mixture model
NMixPlugDensJoint2

Pairwise bivariate densities: plug-in estimate
NMixMCMCwrapper

Wrapper to the NMixMCMC main simulation.
NMixMCMCinity

Initial values of censored observations for the NMixMCMC function
NMixPlugCondDensJoint2

Pairwise bivariate conditional densities: plug-in estimate
NMixPlugCondDensMarg

Univariate conditional densities: plug-in estimate
NMixPseudoGOF

Pseudo goodness-of-fit test for a normal mixture model
NMixPredCondDensMarg

Univariate conditional predictive density
NMixPredCDFMarg

Marginal (univariate) predictive cumulative distribution function
NMixPredDA

Discriminant analysis based on MCMC output from the mixture model
NMixPredDensMarg

Marginal (univariate) predictive density
NMixRelabel

Re-labeling the MCMC output of the mixture model
NMixRelabelAlgorithm

Argument manipulation for the NMixRelabel functions
NMixSummComp

Summary for the mixture components
TMVN

Truncated multivariate normal distribution
NMixPlugDensMarg

Marginal (univariate) densities: plug-in estimate
NMixPredCondDensJoint2

Pairwise bivariate conditional predictive densities
NMixPredDensJoint2

Pairwise bivariate predictive density
NMixPredCondCDFMarg

Univariate conditional predictive cumulative distribution function
TNorm

Truncated normal distribution
Wishart

Wishart distribution
PBC910

Subset of Mayo Clinic Primary Biliary Cholangitis (Cirrhosis) data
getProfiles

Individual longitudinal profiles of a given variable
Tandmob

Signal Tandmobiel data
Y2T

Transform fitted distribution of Y=trans(T) into distribution of T
SP2Rect

Conversion of a symmetric matrix stored in a packed format (lower triangle only) into a matrix
TandmobEmer

Signal Tandmobiel data - emergence times
summaryDiff

Posterior summary statistics for a difference of two quantities
PBCseq

Mayo Clinic Primary Biliary Cholangitis (Cirrhosis), sequential data
tracePlots

Traceplots for selected parameters
plot.NMixPlugCondDensMarg

Plot computed univariate conditional densities (plug-in estimate)
plot.NMixPlugCondDensJoint2

Plot computed pairwise bivariate conditional densities (plug-in estimate)
fitted.GLMM_MCMC

Fitted profiles in the GLMM model
generatePermutations

Generate all permutations of (1, ..., K)
plot.NMixPlugDensJoint2

Plot computed marginal pairwise bivariate densities (plug-in estimate)
plot.NMixPlugDensMarg

Plot computed marginal predictive densities
plot.NMixPredCDFMarg

Plot computed marginal predictive cumulative distribution functions
plot.NMixPredCondCDFMarg

Plot computed univariate conditional predictive cumulative distribution functions
SimData

Simulated dataset
rRotationMatrix

Random rotation matrix
plot.NMixPredCondDensJoint2

Plot computed predictive pairwise bivariate conditional densities
rSamplePair

Sample a pair (with replacement)
plot.NMixPredCondDensMarg

Plot computed univariate conditional predictive densities
autolayout

Automatic layout for several plots in one figure
plot.NMixPredDensJoint2

Plot computed marginal pairwise bivariate predictive densities
cbplot

Plot a function together with its confidence/credible bands
plot.NMixPredDensMarg

Plot computed marginal predictive densities
plotProfiles

Plot individual longitudinal profiles