perm_area: Calculate the permuted area

Description Usage Arguments Value Examples

View source: R/perm_area.R

Description

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

Usage

1
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

1
2
3
a = rnorm(100,0,1)
b = rnorm(100,0,1)
perm_area(a,b,10)

sobir documentation built on Jan. 11, 2020, 9:39 a.m.