Multivariate Surrogate Synchrony

Multivariate Surrogate Synchrony ('mvSUSY') estimates the synchrony within datasets that contain more than two time series. 'mvSUSY' was developed from Surrogate Synchrony ('SUSY') with respect to implementing surrogate controls, and extends synchrony estimation to multivariate data. 'mvSUSY' works as described in Meier & Tschacher (2021).


mvSUSY

Multivariate Surrogate Synchrony (mvSUSY) estimates the synchrony within datasets that contain more than two time series. mvSUSY was developed from Surrogate Synchrony (SUSY) with respect to implementing surrogate controls, and extends synchrony estimation to multivariate data. 'mvSUSY' works as described in Meier & Tschacher (2021).

R package website


Installation

#install.packages("mvSUSY") ## not yet on CRAN

## development version
install.packages("mvSUSY", repos=c("https://wtschacher.github.io/mvSUSY/","https://cloud.r-project.org"))

Usage

Note that the following example assumes that the source data are in a flat file and it has particular structure (column names in first row, whitespace as field separator). If you do not have such, then use the command in the comment below to mockup random data.

library(mvSUSY)

## read in data from a flat file
data = read.csv(file.choose(), header=TRUE, sep=" ", na.strings=".")

## mockup random data if needed
#data = as.data.frame(replicate(5, sample(10, 5000, TRUE)))

## compute mvSUSY using 'lambda_max' method
res = mvsusy(data, segment=10, Hz=10)
res

## plot
plot(res, type="eigenvalue")
plot(res, type="density")
plot(res, type="free scale")
plot(res, type="segment-wise")
plot(res, type="time series")

## compute mvSUSY using 'omega' method
res = mvsusy(data, segment=10, Hz=10, method="omega")
res

plot(res, type="density")
plot(res, type="free scale")
plot(res, type="segment-wise")
plot(res, type="time series")

## export to flat file via data.frame and write.csv
df = as.data.frame(res)
df

mvsusy function manual

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("mvSUSY")

0.1.0 by Wolfgang Tschacher, 3 years ago


https://wtschacher.github.io/mvSUSY/


Report a bug at https://github.com/wtschacher/mvSUSY/issues


Browse source code at https://github.com/cran/mvSUSY


Authors: Wolfgang Tschacher [aut, cre] , Deborah Meier [aut] , Jan Gorecki [ctb]


Documentation:   PDF Manual  


GPL-2 license


Imports data.table, RcppAlgos, ggplot2, ggsci

Suggests plotly


See at CRAN