Questions tagged [mclust]

mclust is an R package for normal mixture modeling via EM, model-based clustering, classification, and density estimation.

mclust is an R package that provides functions for parameter estimation via the EM algorithm for normal mixture models with a variety of covariance structures, and functions for simulation from these models. Also included are functions that combine model-based hierarchical clustering, EM for mixture estimation and the Bayesian Information Criterion (BIC) in comprehensive strategies for clustering, density estimation and discriminant analysis.

Resourses

47 questions
1
vote
0 answers

unable to install mclust package R in ubuntu

I tried to install mclust package R in RStudio using different ways install.packages("mclust") devtools::install_github("cran/mclust") biocLite('mclust') but I get this error: * installing *source* package ‘mclust’ ... ** package ‘mclust’…
1
vote
0 answers

3-step Latent Profile Analysis in R?

I was wondering if it is possible to run a 3-step Latent Profile analysis in R. This would involve treating latent profiles as categorical variables, then running multinomial logistic regression models to identify the likelihood (with the Odds…
Jaci S
  • 11
  • 1
1
vote
0 answers

mclust parameters infinite values for variances/sigma

I'm trying to use the Mclust function from the mclust package for latent class modeling. The example described in the vignette (https://cran.r-project.org/web/packages/mclust/vignettes/mclust.html) based on the diabetes data works like a charm, but…
Saja01
  • 55
  • 6
1
vote
2 answers

sklearn mixture.GMM in python using univariate GMM

In R, mclust has an argument 'modelNames' where you can define which model to implement. I wish to do a univariate modeling which is also modelNames <- 'V' in mclust under mixture.GMM in python. However, the only thing I find that I can tweak with…
Jeff The Liu
  • 61
  • 2
  • 7
1
vote
2 answers

R: MclustICL function error when rounding

When running mclustICL (R package mclust 5.3) on data an error occurs: data <- c(-0.485152666666667, -0.457841666666667, -0.457841666666667, -0.457841666666667, -0.457841666666667, -0.457841666666667, -0.457841666666667, -0.457841666666667) >…
Marie
  • 11
  • 3
0
votes
0 answers

Correct use and interpretation of noise in R package mclust_6.0.0

I am using MClust to cluster flow cytometry data (initial clustering meant for cleanup of the data) based on all the morphological parameters plus the UV channel (representing dead cells). Specifying the noise parameter as those events (usually…
0
votes
1 answer

Assign clusters to new data using a model based on previously gained data

In an experiment, we gained data through an online survey. We used this data to conduct a cluster analysis (using the library(mclust) library). According to the clusters gained through our analysis, we then selected certain people for further…
Linus
  • 41
  • 5
0
votes
0 answers

Random sampling of rows based on a catergorical column for n iterations in R then using mclust for clustering these dataframes

I have a dataframe where the samples are rows and columns are proteins, I have an additional categorical column which are the group names that the samples belong to…
0
votes
0 answers

Clustering with R 'Mclust' function: setting priors for output parameters

I am using the R package mclust to separate data into clusters. For this, I am using a uni-dimensional that allows for variable variances of the normal distributions underlying the clustering (the "V" model in the package). The function looks like…
0
votes
0 answers

label a plot from Mclust after a PCA

i have a PCA and a clustering to do, on my final graph i want to label the point depending of what they're representing (image in my case) here is my code: PCA(X) #graph de la PCA res_pca <- PCA(X,graph = F) todoEM <-…
0
votes
0 answers

data generation cluster analysis

I' don't know with what R commands you can generate datasets with combination of parameters (dimension, cluster proportions,model). I use this commands formmatrix = function(a,b,c,d,e,f,p){ m1 = c(0,8,rep(0, p-2)) m2 = c(8,0,rep(0, p-2)) …
0
votes
1 answer

Mclust() - NAs in model selection

I recently tried to perform a GMM in R on a multivariate matrix (400 obs of 196 var), which elements belong to known categories. The Mclust() function (from package mclust) gave very poor results (around 30% of individuals were well classified,…
Droidux
  • 146
  • 2
  • 12
0
votes
0 answers

How to compute the number of clusters in spatial datasets in R?

I have two datasets which has a length of 10000 columns but it looks like this. Essentially, it has the x- and y- coordinate of every object in a 2d map. rep x-pos y-pos 1 0.5 0.7 1 0.1 0.0 1 4.6 2.5 2 5.6 5.0 2 0.2 1.0 2 …
Glen
  • 23
  • 3
0
votes
1 answer

The values in a fviz_cluster figure do not correspond with the datapoints of the dataset

I have composed the following script for a clustered scatter plot with fviz_cluster. According to the plot, there are negative values for x and negative values for y. dots <- dots %>% select(GRNHLin, RED2HLin) dots <- dots %>% …
LiWa
  • 51
  • 2
0
votes
1 answer

Warnings when transforming to logarithmic scale, a lot of NaNs produced

For a few weeks, I have used the following script to produce a scatterplot with approximately 10,000 (non-zero, positive) datapoints. Only few (<20) datapoints were not included because of warnings with the transformation. visual <-…
LiWa
  • 51
  • 2