estimate_profiles_mclust: Estimate latent profiles using mclust

View source: R/estimate-profiles-mclust.R

estimate_profiles_mclustR Documentation

Estimate latent profiles using mclust

Description

Estimates latent profiles (finite mixture models) using the open source package mclust.

Usage

estimate_profiles_mclust(df, n_profiles, model_numbers, select_vars, ...)

Arguments

df

data.frame with two or more columns with continuous variables

n_profiles

Numeric vector. The number of profiles (or mixture components) to be estimated. Each number in the vector corresponds to an analysis with that many mixture components.

model_numbers

Numeric vector. Numbers of the models to be estimated. See estimate_profiles for a description of the models available in tidyLPA.

select_vars

Character. Optional vector of variable names in df, to be used for model estimation. Defaults to NULL, which means all variables in df are used.

...

Parameters passed directly to Mclust. See the documentation of Mclust.

Value

An object of class 'tidyLPA' and 'list'

Author(s)

Caspar J. van Lissa


jrosen48/tidyLPA documentation built on Feb. 23, 2024, 11:33 p.m.