Questions tagged [gmm]

For questions about Gaussian mixture models (GMMs).

For questions about Gaussian mixture models (GMMs).

199 questions
0
votes
0 answers

Growth Mixture Modelling of items in R

I'm trying to perform a growth mixture modelling (GMM) analysis in R using the lcmm package. I have a dataset with several items from psychological scales - and a subject ID column - and I want to perform a GMM for each scale. For example, one scale…
AlejandroDGR
  • 178
  • 1
  • 10
0
votes
0 answers

ADD INTERCEPT TO GMM MODEL IN R (function: pgmm; package: plm)

When I launch the pgmm function using the plm package for my dynamic panel data model I can see the output that shows the results for every variable I inserted in the model (including the lags) but I cannot see the results for the intercept. Here is…
0
votes
1 answer

How can I estimate the scale parameters of a normal distribution with gmm package

I have to use the gmm function in order to estimate the scale parameters of a normal distribution and then with the Poisson distribution. Then I have to see which distribution fits the most with my data. I already stuck with the normal…
0
votes
0 answers

What function do I use to get the cluster labels when running Gaussian Mixture Model with PySpark?

Question as above^ I'm using PySpark to find clusters in a dataset. I have used the following code so far: # Vectorizing from pyspark.ml.feature import VectorAssembler assembler1 = VectorAssembler( inputCols=["cons_fraud_prob",…
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
1 answer

How can one add/remove components from a sklearn gmm object for further warm start?

The sklearn.mixture object GaussianMixture provides the framework to fit a GMM to provided data, but how can one add/remove components from a sklearn gmm object for further warm start?
0
votes
1 answer

Is there an efficient way of representing a 2D numpy array for the purpose of fitting a GMM to it?

I have been using Gaussian Mixture Models (GMM) to model a set of peaks in a 2D numpy array (a). a = np.array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 1., 100., 1000., 100., 2., 1., 1., 1., 0., 0.,…
0
votes
0 answers

Predicting class membership in growth mixture modeling R?

I am working with growth mixture modeling and identified a model with 4 latent classes. I know want to predict membership of those classes by several predictors - how can I implement this in R? I dont want that the priorly identified classes change…
Michelle
  • 21
  • 2
0
votes
1 answer

How to get (random) number from Gaussian Mixture model(GMM)?

I want to get a list of random numbers from GMM. I've plotted a distribution like this. And I was wondering whether there is some way to get the value from the distribution curve, such as getting number 0.94, 0.96, 0.95.... How to get it? I am not…
Megan
  • 541
  • 1
  • 3
  • 14
0
votes
1 answer

cluster the Gaussian mixture models for an image

nan pdf this is what I expect to get output I developed this python code to cluster the Gaussian mixture models for an image. It works fine with the image segmentation and it shows the GMM on the image histogram. However, there is something wrong…
0
votes
0 answers

How to show the Gaussian mixture models for clustering an image?

I used the attached code to get the GMM for some images. I also want to show the GMM on the histogram of the image. I already did that. However, I also wanna show the GMM clusters distribution. I attached the output of the GMM on the histogram and…
0
votes
1 answer

How to extract coefficients from pydynpd package in python(system gmm)?

I am trying to run a monte carlo simulation on a model estimated by the system gmm. Therefore, I need to extract the coefficients of my model from the prettytable from the pydynpd package in python (https://github.com/dazhwu/pydynpd). I am searching…
noa
  • 1
0
votes
0 answers

Error running GMM - system is computationally singular

I need help, I try to run a GMM estimation method in R but it gives me the error message, Error in solve.default(crossprod(WX, t(crossprod(WX, A2)))) : system is computationally singular: reciprocal condition number = 3.59161e-23 Which I don't…
0
votes
2 answers

Dynamic panel model using the generalized method of moments (GMM) estimation of Arellano and Bond

Based on the work of Kuo et al (Kuo, H.-I., Chen, C.-C., Tseng, W.-C., Ju, L.-F., Huang, B.-W. (2007). Assessing impacts of SARS and Avian Flu on international tourism demand to Asia. Tourism Management. Retrieved from:…
0
votes
1 answer

Dynamic Panel GMM estimation using PGMM

library(plm) dat <- read.csv("dat.csv") z1 <- pgmm( nz ~ bs | pc , dat, # subset, # na.action, effect = c("twoways", "individual"), model = c("onestep", "twosteps"), collapse = FALSE, lost.ts = NULL, transformation = c("d",…