between_trial_change {GCalcium} | R Documentation |
Compare mean activity between trials
Description
'between_trial_change' finds the difference in means during same time range between sets of trials.
Usage
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
# 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))
[Package GCalcium version 1.0.0 Index]