offsetErrorDecayModel | R Documentation |
This function is part of a set of functions to fit and evaluate an exponential decay model with asymptote and offset.
offsetErrorDecayModel(par, timepoints)
par |
A named vector with the function parameter (see details). |
timepoints |
An integer indicating the number of trials (N), or a vector with N trial numbers (these can have missing values or be fractions) with the first timepoint having index 0. If this is an integer, the timepoints at which the exponential will be evaluated is: 0, 1 ... N-2, N-1 |
The 'par' argument is a named numeric vector that should have the following elements: - r: rate (of decay/learning) - s: span (difference between starting point and asymptote) - o: offset (added to the whole function)
A data frame with two columns: 'trial' and 'value', and N rows, so that each row has the output of the modeled process on each trial.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.