SwapOrder(data)
resp
, S1
,
S2
, S3
and S4
. resp
is the binary response
of the observer (it could be a logical). The other four iSwapOrder
modifies the data.frame so that the stimuli are ordered by physical level and the responses, 0 and 1, are modified to refer to the lower and upper pair on the physical scale, respectively. If the object inherits also from class invord
attribute that is a logical vector of length the number of rows in the data.frame. It indicates the trials on which the higher stimulus levels were presented on the bottom. If this attribute is present, it is used to modify the data.frame. In this case, the function acts as its own inverse.data(kk1)
kk1.swo <- SwapOrder(kk1)
Run the code above in your browser using DataLab