runSampleExperiment {MLDS} | R Documentation |
Runs a difference scaling experiment displaying stimuli with the function DiplayTrial
defined by the function DefineStimuli
.
runSampleExperiment(DisplayTrial, DefineStimuli, NumTrials = NULL, DisplaySize = 10, ...)
DisplayTrial |
character giving the name of a function to display a trial with quadruple of stimuli. |
DefineStimuli |
character giving the name of a function that defines the set of stimuli from which quadruples are drawn. |
DisplaySize |
numeric giving the overall size of the display on the screen. |
NumTrials |
integer giving the number of trials to display. If NULL (the default), the number is computed on the basis of the size of stimulus set designated by DefineStimuli . |
... |
currently unused |
This function is to demonstrate how to run a difference scaling experiment. Two helper functions DisplayOneTrial
and DefineMyScale
permit running the perception of correlation experiment, sample data from which are provided as datasets,
{see kk
.}
An object of class `mlds.df' is returned. It inherits from
`data.frame' and has attributes `stimulus' and `invord'.
See kk
for an example.
Kenneth Knoblauch and Laurence T. Maloney
##This will start a 330 trial interactive experiment ## Not run: runSampleExperiment("DisplayOneTrial", "DefineMyScale") ##This will run 10 trials of an interactive experiment ## Not run: runSampleExperiment("DisplayOneTrial", "DefineMyScale", NumTrials = 10)