womExtractModel: Extract WMCapacity model specification and results.

Description Usage Arguments Details Value See Also Examples

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

1
2

Arguments

name

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

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/.

Value

A list containing the following elements (if applicable):

modelName

The name of the model.

model

A list containing the model specification.

priors

A list containing the prior specification.

settings

A list containing the MCMC settings, if an analysis has been performed.

results

A list containing the results, if an analysis has been performed.

See Also

wommbatGUI, for fitting the working memory models.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
     ## Not run: 
     ## 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
	 
## End(Not run)
     
     

WMCapacity documentation built on May 2, 2019, 6:15 p.m.