Learn R Programming

rebmix (version 2.6.1)

coef.REBMIX: Prints Univariate or Multivariate REBMIX Coefficients

Description

Returns the w and Theta output at pos for class REBMIX.

Usage

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

Arguments

object
an object of class REBMIX.
pos
a desired row number in summary to be printed. The default value is 1.
...
further arguments to print.

Examples

Run this code
## Generate and print simulated dataset.

Theta <- rbind(pdf = rep("Weibull", 3),
  theta1 = c(2.0, 10.0, 30),
  theta2 = c(2.0, 4.0, 7.0))

simulated <- RNGMIX(Dataset = "simulated",
  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", 
  D = 0.025, 
  cmax = 6, 
  Criterion = "AIC", 
  Variables = "continuous",
  pdf = "Weibull", 
  K = 8:25)
  
## Print coefficients and plot finite mixture.  

coef(simulatedest)

plot(simulatedest)

Run the code above in your browser using DataLab