220 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
70
views
Issues with multilevLCA 2.1.0
I recently encountered an issue with multilevLCA that I suspect may be related to the latest package update. Until a couple of days ago, running multilevLCA 2.0.1 locally on RStudio worked like a ...
2
votes
1
answer
121
views
Mixture Model of genextreme in Scipy
I'm trying to develop a mixture of genextreme distributions in Scipy using the following code.
from scipy.stats import genextreme
from scipy.stats import Mixture
eva_1 = {'c': -0.48, 'loc': 38.82, '...
0
votes
0
answers
72
views
How to use mice and qgcomp packages together?
I want to do mixture analysis with qgcomp, but I have missing data on some of the covariates, including a couple that I have to use to create another variable (e.g., I have missing data on weigth and ...
0
votes
1
answer
63
views
mixture regression models with concomitants
I would like to know if the concomitant variables in mixture regression models need to be uncorrelated and, in case, why and how to handle possible correlation between them.
I am asking a theoretical ...
0
votes
0
answers
482
views
lcmm() in R Error: Numerical problem by computing fn value of function is : NaN
My data frame filtered_gmmdf_long (long format) has no NA. It contains the variables ID, time (i.e. 0, 3, 8, 15, 25), and wblv (continuous, approximately Normal distributed).
Sample data
library(dplyr)...
0
votes
1
answer
61
views
My script is giving me an error on the length of a component
I have to represent with ggplot a mixture of 3 Poissons and superimpose the density of the components but it doesn't work. Every time ggplot is either empty or flat.
I tried this method and one where ...
0
votes
1
answer
455
views
Is it possible to implement Growth Mixture Models/Latent Class Mixed Models in Python? If so, how? R has packages such as lcmm and flexmix for this [closed]
R has lots of support for Finite Mixture Models, as well as specialized packages for more specific Mixture Models for approaches such as Latent Class Mixed Models (lcmm package) and Growth Mixture ...
1
vote
0
answers
224
views
Fitting mixtures of truncated normal distributions in R
I am trying detect the number of modes in a variable in R.
My variable was collected in a survey on a 1-7 scale which is why I want to fit mixtures of truncated Gaussian distributions.
I am struggling ...
0
votes
1
answer
299
views
How to manually define intial parameters for scikit GMM
I am using scikit's General Mixture Model to fit some data, but I would like to define the initial centroids of each cluster manually.
The scikit learn documentation states:
There is a choice of four ...
0
votes
0
answers
110
views
determine if data is uni- or bimodal
I have a dataset where many but not all of my data seems to have a bivariate distribution.
I can perform a mixture model for each group in the dataset, but I'd like to know how to test if a univariate ...
tnt's user avatar
- 1,527
0
votes
1
answer
299
views
EM algorithm with Beta Distribution in R
I would like to write R code to build the dirichlet mixture model.
The loglikelihood I used for the beta distribution is as below:
LL(α,β)=(α−1)nlnxi ̄+(β−1)nln(1−xi) ̄+nlnΓ(α+β)−nlnΓ(α...
0
votes
0
answers
895
views
How to evaluate probabilities of samples in Gaussian Mixture Model
I've created a Gaussian Mixture Model in Python with 11 components based on 8-dimensional data (I picked 11 components because that's what minimized the BIC score). I now have a test sample of data (...
0
votes
2
answers
83
views
How to loop through many columns
I have about 88 columns in a pandas dataframe. I'm trying to apply a formula that calculates a single value for each column. How do I switch out the name of each column and then build a new single-row ...
0
votes
1
answer
43
views
Dot-notation not working with MixtureExpectation?
This is my first post so I apologize for any formatting issues.
I'm trying to calculate the expected value of a collection of numbers in Julia, given a probability distribution that is the mixture of ...
0
votes
1
answer
139
views
mixture copula in R
I want to use mixture copula for reliability analysis, now ,with the help of a friend ,I've already finished it ‘RVMs_fitted’ 。now i want to perform the probability integral transformation (PIT),but ...