WMCapacityConsole {WMCapacity} | R Documentation |
WMCapacityConsole
is the non-GUI interface for
estimating parameters of working memory models. This function is
useful for simulations.
WMCapacityConsole(data=NULL,filename=NULL,setup,name="Analysis")
data |
a data frame containing the trial-by-trial data to be analyzed. |
filename |
the name of a CSV file containing the trial-by-trial data to be analyzed. |
setup |
object of class WM2Package , containing
all the necessary information necessary to start an analysis. |
name |
analysis name, used for naming output files. |
This function is the non-GUI interface for estimating working memory capacity from change detection data, using the hierarchical Bayesian models described in Morey (in preparation).
There are a number of ways of passing data to the function. If you
have the trial-by-trial data already loaded in R, you can pass the
data via the data
argument. If it is in a file, you can load
it by passing the path via the filename
argument. The
setup
argument is required; the passed object will contain
the details of the model to be fitted.
The best way to use this function is to fit the model to data using
the GUI interface WMCapacityGUI
, saving the returned
object. Then, new data can be analyzed by passing the object via
the setup
argument. Note that for this to work, the new data
must have the same column names as the old data.
For further details, see the user's manual at drsmorey.org/research/rdmorey/.
An object of class WM2Package
.
WMCapacityGUI
, for the GUI interface.
## Not run: ## load Visual Array data set (Rouder et al., 2008) data(VisualArray) WMoutput = WMCapacityGUI(data=VisualArray) ## this is redundant, but it shows how it works WMCapacityConsole(data=VisualArray, setup=WMoutput) ## End(Not run)