plot.SAMC: plot function for SAMC

Description Usage Arguments Examples

View source: R/SAMCfunctions.R

Description

This function plots the convergence diagnostics for the SAMC algorithm and prints out the associated values. If the SAMC converged, then it should have sampled nearly uniformly from all regions. The maximum discrepancy is the maximum difference between the number of times SAMC sampled from a region and the expected amount if the sampling were uniform. Yu et al. suggest that the maximum discrepancy should be less than 0.2.

Usage

1
2
## S3 method for class 'SAMC'
plot(sam)

Arguments

sam

Output from the SAMC function

Examples

1
2
3
4
x <- rexp(100, 5)
y <- rexp(100, 2)
sam <- SAMC(x, y)
plot(sam)

bdsegal/fastperm documentation built on July 22, 2019, 1:26 p.m.