Learn R Programming

rebmix (version 2.3.0)

summary.REBMIX: Prints Univariate or Multivariate REBMIX Summary

Description

Returns the summary output for class REBMIX.

Usage

## S3 method for class 'REBMIX':
summary(object, ...)

Arguments

object
an object of class REBMIX.
...
further arguments to summary.

Examples

Run this code
## Generate and print the simulated 6 dataset.

Theta <- rbind(pdf = rep("Dirac", 4),
  theta1 = c(1, 3, 4, 8))

simulated6 <- RNGMIX(Dataset = "simulated6",
  rseed = -1,
  n = c(40, 20, 50, 10),
  Theta = Theta)
  
simulated6

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

simulated6est <- REBMIX(Dataset = simulated6$Dataset, 
  Preprocessing = "histogram", 
  D = 0.025, 
  cmax = 8, 
  Criterion = "D", 
  Variables = "discrete",
  pdf = "Dirac", 
  K = 1, 
  b = 0.0)
  
## Print summary and plot the finite mixture.  

summary(simulated6est)

plot(simulated6est)

Run the code above in your browser using DataLab