step2: Obtaining state assignment and classification errors

View source: R/7Step2.r

step2R Documentation

Obtaining state assignment and classification errors

Description

step2 conducts step 2 of the three-step estimation of LMFA. More specifically, the function extracts the classification information from the step1 output.

Usage

step2(data, model)

Arguments

data

The dataset (must be a dataframe and contain complete cases only).

model

The model estimated with step1 (must be of class lmfa_step1).

Value

Returns the posterior state probabilities, the modal state assignments, the classification errors, and the state proportions.

Examples

## Not run: 
classification <- step2(data, model)

## End(Not run)

LeonieVm/lmfa documentation built on Dec. 5, 2023, 1:38 p.m.