Description Usage Arguments Value See Also Examples
Returns the Var
slot.
1 2 | ## S4 method for signature 'groupmoments'
getVar(object)
|
object |
An |
The Var
slot of the object
.
groupmoments for the definition of the groupmoments
class
groupmoments()
for the class constructor
1 2 3 4 5 6 7 8 | # Generate a Poisson mixture model with two components.
f_model <- model("poisson", par = list(lambda = c(0.3, 0.7)), K = 2)
# Simulate data from the model.
f_data <- simulate(f_model)
# Calculate the mixture moments.
f_gmoments <- groupmoments(f_data)
# Get the moments for the included indicators of the data.
getVar(f_gmoments)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.