print.bmixgamma: Print function for 'S3' class '"bmixgamma"'

Description Usage Arguments Author(s) See Also Examples

View source: R/bmixgamma.R

Description

Prints the information about the output of function bmixgamma.

Usage

1
2
## S3 method for class 'bmixgamma'
print( x, ... )

Arguments

x

An object of S3 class "bmixgamma", from function bmixgamma.

...

System reserved (no specific usage).

Author(s)

Reza Mohammadi a.mohammadi@uva.nl

See Also

bmixgamma

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Not run: 
# simulating data from mixture of gamma with two components
n      = 500 # number of observations
weight = c( 0.6, 0.4 )
alpha  = c( 12 , 1   )
beta   = c( 3  , 2   )

data <- rmixgamma( n = n, weight = weight, alpha = alpha, beta = beta )
  
# plot for simulation data    
hist( data, prob = TRUE, nclass = 50, col = "gray" )
  
x     = seq( 0, 10, 0.05 )
truth = dmixgamma( x, weight, alpha, beta )
      
lines( x, truth, lwd = 2 )
  
# Runing bdmcmc algorithm for the above simulation data set      
bmixgamma.obj <- bmixgamma( data, iter = 500 )
    
print( bmixgamma.obj )

## End(Not run)

Example output

 Iteration  100                 
 Iteration  200                 
 Iteration  300                 
 Iteration  400                 
 Iteration  500                 
 500 iteration done.                                

Estimated of number of components =  3

bmixture documentation built on May 11, 2021, 5:08 p.m.