sobir (version 0.1.2)

perm_area: Calculate the permuted area

Description

perm_area calculates the no-data zone areas for each permutation of the data simulated nsim times.

Usage

perm_area(xdat, ydat, nsim, boundary = "topl", method = "auto")

Arguments

xdat

a vector of the independent data

ydat

a vector of the dependent data

nsim

the number of simulations to run

boundary

character string indicating the boundary to test (default is "topl"). Possible values are "topl" (top-left), "topr" (top-right), "botl" (bottom-left), "botr" (bottom-right) or "all".

method

character string indicating computation method (default is "auto"). Possible values are "exact", "approximate" or "auto".

Value

a perm table that can be plotted directly using perm_plot()

Examples

Run this code
# NOT RUN {
a = rnorm(100,0,1)
b = rnorm(100,0,1)
perm_area(a,b,10)
# }

Run the code above in your browser using DataLab