Learn R Programming

rebmix (version 2.7.2)

print.RNGMIX: Prints Univariate or Multivariate RNGMIX Output

Description

Returns the print output for class RNGMIX.

Usage

## S3 method for class 'RNGMIX':
print(x, ...)

Arguments

x
an object of class RNGMIX.
...
further arguments to print.

Value

  • print.RNGMIX returns (invisibly) the full value of x itself.

Examples

Run this code
## Generate and print simulated dataset.

Theta <- rbind(pdf = rep("Poisson", 2),
  theta1 = c(1.0, 10.0))

simulated <- RNGMIX(Dataset = paste("simulated_", 1:5, sep = ""),
  rseed = -1,
  n = c(100, 50),
  Theta = Theta)
  
print(simulated, pos = 3)

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

simulatedest <- REBMIX(Dataset = simulated$Dataset, 
  Preprocessing = "histogram", 
  cmax = 4, 
  Criterion = "AIC", 
  Variables = "discrete",
  pdf = "Poisson", 
  K = 1)
  
## Print and plot finite mixture.    

print(simulatedest, pos = 2)

plot(simulatedest, pos = 3)

Run the code above in your browser using DataLab