Learn R Programming

LEAP (version 0.2)

MAC_lags: Internal function used by MAC_counter and MAC_perm

Description

Performs the lag-based correlation analysis

Usage

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.

Value

Returns MAC and associated lag matrices.

Details

See vignette for more details.

Examples

Run this code

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)

Run the code above in your browser using DataLab