z.expectation: Expectation of the latent variable.

Description Usage Arguments Value Author(s) References Examples

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)

dmt documentation built on May 1, 2019, 8:12 p.m.

Related to z.expectation in dmt...