Skip to content
/ wcc Public

R package for windowed cross-correlation analysis

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

jmgirard/wcc

Repository files navigation

wcc

The goal of wcc is to …

Installation

You can install the development version of wcc from GitHub with:

# install.packages("devtools")
devtools::install_github("jmgirard/wcc")

Example

This is a basic example which shows you how to solve a common problem:

library(wcc)

# Extract the second ten minutes of interaction
second_ten <- dplyr::filter(head_velocity, time >= 10 * 60, time < 20 * 60)

# Set up parallel processing
future::plan(future::multisession)

# Conduct windowed cross-correlation analysis
res <- wcc(
  x = second_ten$x,
  y = second_ten$y,
  window_size = 4 * 60, # 4 sec windows
  window_increment = 60 / 10, # 1/10 sec increment
  lag_max = 2 * 60, # 2 sec maximum lag
  lag_increment = 60 / 10 # 1/10 sec increment
)

res$fisher_z
#> [1] 0.1402129
plot(res)

About

R package for windowed cross-correlation analysis

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages