asymptoticDecayFit: Fit an asymptotic decay model to reach deviations.

View source: R/asymptoticDecayModel.R

asymptoticDecayFitR Documentation

Fit an asymptotic decay model to reach deviations.

Description

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

The schedule should usually be a sequence of ones. The reach deviations have to be baselined (but the baseline is cut from the data).

Usage

asymptoticDecayFit(schedule, signal, gridpoints = 11, gridfits = 10)

Arguments

schedule

A vector of length N with the perturbation schedule.

reaches

A vector of length N with reach deviation data.

Details

?

Value

A named numeric vector with the optimal parameter that fits a simple rate model to the data as best as possible, with these elements: - lambda: the rate of change - N0: the asymptote

Examples

# write example!

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