disclapmix_robust: Robust fitting

View source: R/disclapmix_robust.R

disclapmix_robustR Documentation

Robust fitting

Description

A wrapper around 'disclapmix()' that tries to avoid errors. Can sometimes avoid errors with SVD problems happening with ‘glm_method = ’internal_coef'‘ and 'glm_method = ’internal_dev''.

Usage

disclapmix_robust(x, clusters, ...)

Arguments

x

Dataset.

clusters

The number of clusters/components to fit the model for.

...

Passed on to 'disclapmix()'

Examples

data(danes)
db <- as.matrix(danes[rep(1:nrow(danes), danes$n), 1:(ncol(danes)-1)])
fit <- disclapmix_robust(db, 3L)
fit


disclapmix documentation built on June 29, 2022, 5:06 p.m.