expectation | R Documentation |
This function computes expectations of a Gaussian mixture model.
expectation(gmm, data_x = NULL)
gmm |
An object of class |
data_x |
A data frame or numeric matrix containing observations of the
explanatory variables if conditional expectations are computed. Its columns
must explicitly be named after the explanatory variables. If |
A numeric matrix containing the expectations.
density
, sampling
data(gmm_body, data_body) expect_1 <- expectation(gmm_body) expect_2 <- expectation(gmm_body, data_body[, c("WEIGHT", "FAT", "HEIGHT", "AGE")])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.