# get the list of file names of example LSD results
library( LSDinterface )
files <- list.files.lsd( system.file( "extdata", package = "LSDsensitivity" ),
"Sim1.lsd", recursive = TRUE )
# Steps to use this function:
# 1. load data from a LSD simulation saved results using a read.xxx.lsd
# function from LSDinterface package (read.3d.lsd, for instance)
# 2. use ergod.test.lsd to apply the tests on the relevant variables,
# replacing "var2", "var3" etc. with your data
# read data from Monte Carlo runs
dataSet <- read.3d.lsd( files )
tests <- ergod.test.lsd( dataSet, # the data set to use
c( "var2", "var3" ), # the variables to test
signif = 0.01, # use 1% significance
digits = 4 ) # show results using 4 digits
print( tests )
Run the code above in your browser using DataLab