Expectation of the latent variable.

Share:

Description

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

Usage

1
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

Returns a matrix (latent features x samples).

Author(s)

Leo Lahti leo.lahti@iki.fi

References

See citation("dmt") for references.

Examples

1
2
3
library(dmt)
data(modelData)
res <- pfa(X, Y, zDimension = 2)