twoRateReachModelErrors: Return the Mean Squared Error Between a Two-Rate Model and a...

Description Usage Arguments Value See Also

View source: R/RcppExports.R

Description

Calculates the average squared error of the Two-Rate Model's prediction, given a set of parameters and a rotation schedule.

Usage

1
twoRateReachModelErrors(par, reaches, schedule, checkStability = TRUE)

Arguments

par

(NumericVector) named parameters (Ls, Rs, Lf, Rf).

reaches

(NumericVector) N reach deviations.

schedule

(NumericVector) N feedback manipulations.

checkStability

(bool) constrain the model to stable parameters.

Value

The average squared error of the model's prediction of the reach deviations given the rotation schedule and model parameters.

See Also

fitTwoRateReachModel and twoRateReachModel


thartbm/RateRate documentation built on May 17, 2019, 11:16 p.m.