MAC_lags: Internal function used by MAC_counter and MAC_perm

Description Usage Arguments Details Value Examples

Description

Performs the lag-based correlation analysis

Usage

1
MAC_lags(data, max_lag_prop = 1/3, symmetric = F)

Arguments

data

Data being passed to the function

max_lag_prop

The largest proportion of your experiments that you want the size of the lag to be. Recommended not to go beyond 1/3. Default value is 1/3.

symmetric

Logical. TRUE indicates that a symmetric matrix is required for output MAC .csv file. Results in the absolute maximum value for each pair (i,j) and (j,i). Default value is FALSE.

Details

See vignette for more details.

Value

Returns MAC and associated lag matrices.

Examples

1
2
3
4
x <- matrix(rnorm(6),2,3)
y <- MAC_lags(x)

## Not run: MAC_results = MAC_lags(data=example_data, max_lag_prop=1/3, symmetric=F)

LEAP documentation built on May 1, 2019, 9:23 p.m.