getPostS-dataclass-method: Getter method of 'dataclass' class.

Description Usage Arguments Value See Also Examples

Description

Returns the postS slot. Note that this slot is only non-null, if the indicators have been simulated.

Usage

1
2
## S4 method for signature 'dataclass'
getPostS(object)

Arguments

object

An dataclass object.

Value

The postS slot of the object.

See Also

Examples

1
2
3
4
5
6
7
# 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)
# Classify observations
f_dataclass <- dataclass(f_data, f_model, simS = TRUE)[[1]]
getPostS(f_dataclass)

simonsays1980/finmix documentation built on Dec. 23, 2021, 2:25 a.m.