Learn R Programming

rebmix (version 2.6.1)

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 print.

Examples

Run this code
## Generate and print simulated dataset.

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

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

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

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

summary(simulatedest)

plot(simulatedest)

Run the code above in your browser using DataLab