print.SAMC: Print function for SAMC

Description Usage Arguments Examples

View source: R/SAMCfunctions.R

Description

This function prints the reslts and convergence diagnostics for the SAMC algorithm. 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'
print(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)
print(sam)

bdsegal/fastPerm documentation built on July 22, 2019, 1:25 p.m.