plotSMC: Plot the progression of the SMC algorithm.

Description Usage Arguments Author(s) Examples

View source: R/main.R

Description

This function plots the progression over the several iterations of the ABC-SMC algorithm. It can be used to explore results obtained with the STEPCAM-ABC function.

Usage

1
plotSMC(path)

Arguments

path

Working Directory

Author(s)

Thijs Janzen

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
Artificial.Data <- generate.Artificial.Data(n_species = 40, n_traits = 3,
                        n_communities = 5, occurence_distribution = 0.2,
                        average_richness = 0.5, sd_richness = 0.2,
                        mechanism_random=FALSE)
O <- STEPCAM_ABC(Artificial.Data$abundances, Artificial.Data$traits,
                 numParticles = 10, n_traits = 3, plot_number = 1, stopRate = 0.8)
currentDir <- getwd();
plotSMC(paste(currentDir,"/",sep=""));

## End(Not run)

Example output

Generating Particles for iteration	 1 
0--------25--------50--------75--------100
***********************  4.8 8 6.2 	 accept rate =  1 

Generating Particles for iteration	 2 
0--------25--------50--------75--------100
***********************  5.3 7.6 6.1 	 accept rate =  1 

Generating Particles for iteration	 3 
0--------25--------50--------75--------100
***********************  6.5 7 5.5 	 accept rate =  1 

Generating Particles for iteration	 4 
0--------25--------50--------75--------100
***********************  6.5 6.3 6.2 	 accept rate =  1 

Generating Particles for iteration	 5 
0--------25--------50--------75--------100
***********************  6.5 5.8 6.7 	 accept rate =  0.7333333 

Generating Particles for iteration	 6 
0--------25--------50--------75--------100
***********************  2.3 13.4 3.3 	 accept rate =  0.44 

Generating Particles for iteration	 7 
0--------25--------50--------75--------100
***********************  3 14.8 1.2 	 accept rate =  0.5 

Generating Particles for iteration	 8 
0--------25--------50--------75--------100
***********************  4 14.5 0.5 	 accept rate =  0.2444444 

Generating Particles for iteration	 9 
0--------25--------50--------75--------100
*  5.5 5.5 5.5 	 accept rate =  0 

STEPCAM documentation built on May 1, 2019, 10:11 p.m.