Learn R Programming

WMCapacity (version 0.9.6.2)

womExtractModel: Extract WMCapacity model specification and results.

Description

The womExtractModel function allows the user to extract model specification and results that were defined in the wommbatGUI graphical user interface. This allows the user to extract results for the purposes of making plots, et cetera, in R.

Usage

womExtractModel(name=1)

Arguments

name
the name (or number) of the model defined in the GUI.

Value

  • A list containing the following elements (if applicable):
  • modelNameThe name of the model.
  • modelA list containing the model specification.
  • priorsA list containing the prior specification.
  • settingsA list containing the MCMC settings, if an analysis has been performed.
  • resultsA list containing the results, if an analysis has been performed.

Details

The womExtractModel function allows the user access to the model specifications and analysis results from the GUI, once they've been defined.

For further details, see the user's manual at http://wmcapacity.r-forge.r-project.org/.

See Also

wommbatGUI, for fitting the working memory models.

Examples

Run this code
## load Visual Array data set (Rouder et al., 2008)
     data(VisualArray)
     
	 ## Define the model in the GUI
	 wommbatGUI(dataFrame=VisualArray)
	 
     # extract the first model. Replace 'Model' with the model name (in quotes)
     myModel = womExtractModel(name='Model')
     
	 # examine the posterior means (if an analysis has been performed)
	 myModel$results$pointEst

Run the code above in your browser using DataLab