BaşlayınÜcretsiz başlayın

Fit the model with cross-terms

In the video, I showed you how to fit a bivariate Gaussian mixture model considering a diagonal covariance matrix (ie, with no cross terms). The idea here is to replicate the estimations but this time considering the cross terms.

Bu egzersiz, kursun bir parçasıdır

Mixture Models in R

Kursa Göz Atın

Egzersiz talimatları

Use the function flexmix() to fit a bivariate Gaussian mixture model for the variables Weight and BMI from gender dataset with two clusters, and cross-terms included.

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

set.seed(1313)
fit_with_covariance <- ___(cbind(___,___) ~ ___,
               data = gender,
               k = ___, 
               model = FLXMCmvnorm(diag = ___),
               control = list(tolerance = 1e-15, iter.max = 1000))
Kodu Düzenle ve Çalıştır