z.expectation: Expectation of the latent variable.

Description Usage Arguments Value Author(s) References Examples

View source: R/z.expectation.R

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 29, 2017, 11 a.m.

Search within the dmt package
Search all R packages, documentation and source code