between_trial_change: Compare mean activity between trials

Description Usage Arguments Value Examples

Description

'between_trial_change' finds the difference in means during same time range between sets of trials.

Usage

1
2
between_trial_change(Dataframe, TrialRange1, TrialRange2,
  Time.period = c(min(Dataframe[1]), max(Dataframe[1])))

Arguments

Dataframe

a GCaMP-format data frame or matrix

TrialRange1

range of trial numbers to be compared to second set of trials

TrialRange2

range of trial numbers to be compared to first set of trials

Time.period

range of time to be compared between sets of trials

Value

Number representing mean difference of trial set 2 and trial set 1

Examples

1
2
3
4
# How much did the mean value change 2s after epoc between trials 1-5 and trials 6-10?
df.new <- format_data(data = GCaMP)
between_trial_change(Dataframe = df.new, TrialRange1 = c(1, 5),
TrialRange2 = c(6, 10), Time.period = c(0, 2))

GCalcium documentation built on May 2, 2019, 9:31 a.m.