Description Usage Arguments Author(s) See Also Examples
Visualizes the results for function bmixgamma
.
1 2 |
x |
An object of |
... |
System reserved (no specific usage). |
Reza Mohammadi a.mohammadi@uva.nl
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 )
plot( bmixgamma.obj )
## End(Not run)
|
Loading required package: BDgraph
Loading required package: Matrix
Loading required package: igraph
Attaching package: 'igraph'
The following objects are masked from 'package:stats':
decompose, spectrum
The following object is masked from 'package:base':
union
Attaching package: 'BDgraph'
The following object is masked from 'package:igraph':
compare
Iteration 100
Iteration 200
Iteration 300
Iteration 400
Iteration 500
Iteration 600
Iteration 700
Iteration 800
Iteration 900
Iteration 1000
1000 iteration done.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.