map_to_granger_test {movementsync}R Documentation

Map duration object comments to a Granger Test object

Description

Map duration object comments to a Granger Test object

Usage

map_to_granger_test(d, g, influence1, influence2)

Arguments

d

DurationObject

g

GrangerTest object

influence1

Comment X>Y string in the Granger Test of Y~X i.e. X causes Y

influence2

Comment X>Y string in the Granger Test of Y~X i.e. X causes Y

Value

modified Duration object

See Also

Other Granger Causality: autoplot.GrangerTime(), get_granger_interactions(), granger_test(), ms_condgrangertest(), ms_grangertest1(), ms_grangertest2(), plot.GrangerInteraction(), plot_influence_diagram()

Examples

r <- get_sample_recording()
fv_list <- get_filtered_views(r, data_points = "Nose", n = 41, p = 3)
jv_sub <- get_joined_view(fv_list)
splicing_df <- splice_time(jv_sub, win_size = 5, step_size = 0.5)
sv <- get_spliced_view(jv_sub, splicing_df)
g <- granger_test(sv, "Nose_x_Central_Sitar", "Nose_x_Central_Tabla", lag = 1/25)
d <- get_duration_annotation_data(r)
map_to_granger_test(d, g, "Influence T>S", "Influence S>T")

[Package movementsync version 0.1.4 Index]