Learn R Programming

dmt (version 0.8.20)

z.expectation: Expectation of the latent variable.

Description

Calculates expectation of the latent variable, given data and model parameters.

Usage

z.expectation(model, X, Y = NULL)

Arguments

model
DependencyModel
X
Data set X.
Y
Optional, second data set. Used in dependency models where two co-occurring observations are assumed to stem from a shared latent variable.

Value

References

See citation("dmt") for references.

Examples

Run this code
library(dmt)
data(modelData)
res <- pfa(X, Y, zDimension = 2)

Run the code above in your browser using DataLab