Learn R Programming

rebmix (version 2.7.2)

print.REBMIX: Prints Univariate or Multivariate REBMIX Output

Description

Returns the print output at pos for class REBMIX.

Usage

## S3 method for class 'REBMIX':
print(x, pos = 1, ...)

Arguments

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

Value

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

Examples

Run this code
## Generate and print simulated dataset.

Theta <- rbind(pdf = rep("binomial", 3),
  theta1 = c(10, 10, 10),
  theta2 = c(0.1, 0.4, 0.9))

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

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

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

print(simulatedest)

plot(simulatedest)

Run the code above in your browser using DataLab