R: Expectation of the latent variable.

z.expectation {dmt} | R Documentation

## 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

Returns a matrix (latent features x samples).

### Author(s)

Leo Lahti leo.lahti@iki.fi

### References

See citation("dmt") for references.

### Examples

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

[Package dmt version 0.8.20 Index]