seriesEffectiveSampleSize: Estimate number of independent samples in a time series.

View source: R/twoRateModel.R

seriesEffectiveSampleSizeR Documentation

Estimate number of independent samples in a time series.

Description

This function is part of a set of functions to fit and evaluate the two-rate model of motor learning.

Usage

seriesEffectiveSampleSize(series, method = "ac_one")

Arguments

series

numeric vector with the time series data.

method

character specifying the method to find the number of independent samples in the time series data vector.

"ac_one": this uses the auto-correlation at lag 1 as ρ, and then gets n_eff = n * ( (1−ρ)/(1+ρ) ) where n is the number of trials in the sequence (default)

"ac_lag.10": this divides the number of trials by the lag at which the auto- correlation is about to go below 0.10: n_eff = n / lag (if AC is higher than 0.10, increase lag and redo, else use previous n_eff)

"ac_lag95 trials by the lag at which the autocorrelation is about to be within the 95 confidence interval, as determined by bootstrapping (with 1000 re-samples)

Details

?

Value

numeric value with the estimated number of independent observation

Examples

?

thartbm/SMCL documentation built on Oct. 23, 2022, 5:17 a.m.