timecourse_stats: Calculate Timecourse Statistics for a Matrix of Responses

timecourse_statsR Documentation

Calculate Timecourse Statistics for a Matrix of Responses

Description

Given a matrix (d) of time courses (each row is an individual and each column is a time point) and a confidence interval (ci) this will calculate the mean, median, confidence intervals and a vector of values for creating patches.

Usage

timecourse_stats(d, ci)

Arguments

d

matrix of responses (each row an individual and each column a time point)

ci

confidence interval in percent (eg, 95)

Value

List with the following elements:

  • stats$ub_ci vector of confidence interval upper bound

  • stats$lb_ci vector of confidence interval lower bound

  • stats$mean vector of mean values

  • stats$median vector of median values


ubiquity documentation built on May 29, 2024, 12:02 p.m.