oneRateMSE: Get the MSE for how well the one-rate model fits reaches.

View source: R/twoRateModel.R

oneRateMSER Documentation

Get the MSE for how well the one-rate model fits reaches.

Description

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

Usage

oneRateMSE(par, schedule, reaches)

Arguments

par

A named numeric vector with the two model parameters (see details).

schedule

A numeric vector of length N with the perturbation schedule.

reaches

A numeric vector of length N with reach deviations matching the perturbation schedule.

Details

The 'par' argument is a named numeric vector that should have the following elements: - L: the learning rate - R: the retention rate

Value

A float: the mean squared error between the total model output and the reach deviations.

Examples

?

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