getR-csdatamoments-method: Getter method of 'csdatamoments' class.

Description Usage Arguments Value See Also Examples

Description

Returns the R slot.

Usage

1
2
## S4 method for signature 'csdatamoments'
getR(object)

Arguments

object

An csdatamoments object.

Value

The R slot of the object.

See Also

Examples

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_sdatamoms <- sdatamoments(f_data)
# Get the moments for the included indicators of the data. 
getR(f_sdatamoms)

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