Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

rebmix (version 2.8.0)

coef-methods: Prints Univariate or Multivariate REBMIX Coefficients

Description

Returns the w and Theta output at pos.

Usage

## S3 method for class 'REBMIX':
coef(object = NULL, pos = 1, ...)
## ... and for other signatures

Arguments

object
see Methods section below.
pos
a desired row number in summary to be printed. The default value is 1.
...
currently not used..

Examples

Run this code
# Generate and print simulated dataset.

Theta <- list(pdf1 = "Weibull",
  theta1.1 = c(2, 10, 30),
  theta2.1 = c(2, 4, 7))

simulated <- RNGMIX(Dataset.name = paste("simulated_", 1:5, sep = ""),
  rseed = -1,
  n = c(40, 60, 50),
  Theta = Theta)
  
simulated

# Estimate number of components, component weights and component parameters.

simulatedest <- REBMIX(Dataset = simulated@Dataset, 
  Preprocessing = "histogram", 
  cmax = 6, 
  Criterion = "AIC", 
  pdf = "Weibull", 
  K = 8:25)
  
# Print coefficients and plot finite mixture.  

coef(simulatedest, pos = 3)

plot(simulatedest)

Run the code above in your browser using DataLab