exact222: Exact maximum likelihood for three binary variables

Description Usage Arguments Examples

View source: R/exact222.R

Description

This function computes the exact maximum likelihood for the model with three observed binary variables and two latent classes.

Usage

1
exact222(counts, tol = 1e-08)

Arguments

counts

A (2,2,2) array with counts. tol tolerance with respect to which model membership is checked (default tol=1e-8)

Examples

1
2
3
4
n <-  c(12, 23, 34, 45, 56, 67, 78, 90)
res <- exact222(n)
res$min.deviance
res$fitted.values

pzwiernik/LatentClass documentation built on May 26, 2019, 11:35 a.m.