RPredVals {WMCapacity}R Documentation

Compute predicted values for working memory models in the package WMCapacity

Description

The RPredVals function computes predicted response probabilities for a specified working memory model and design, given values of the effect parameters. This function is useful for model checking.

Usage

     RPredVals(x,setup)
     

Arguments

x the vector containing values at which to evaluate the function.
setup an object of class WM2Package, containing the model information.

Details

The RPredVals function computes predicted probabilities for the model and design specified by the setup argument. The probability of responding ``change'' in a change detection task is predicted for each trial.

For further details, see the user's manual at http://drsmorey.org/research/rdmorey/.

Value

A vector of predicted probabilities; each element corresponds to a trial.

See Also

WMCapacityGUI, for fitting the working memory models.

Examples

     ## Not run: 
     ## load Visual Array data set (Rouder et al., 2008)
     data(VisualArray)

     output = WMCapacityGUI(data=VisualArray)
     
     # compute log-likelihood at posterior mean 
     RPredVals(output@output@par[,5],output)
     ## End(Not run)
     
     

[Package WMCapacity version 0.9.1 Index]