Description Usage Arguments Value See Also Examples
Returns the smoments
slot.
1 2 | ## S4 method for signature 'cdatamoments'
getSmoments(object)
|
object |
An |
The smoments
slot of the object
.
datamoments for the base class for model moments
datamoments()
for the constructor of the datamoments
class family
1 2 3 4 5 6 7 8 | # Generate an exponential mixture model with two components.
f_model <- model("exponential", 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_datamoms <- datamoments(f_data)
# Get the moments for the included indicators of the data.
getSmoments(f_datamoms)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.