Description Usage Format Details Source References Examples
Data from 130 participant
s with two between-participants factors (delay
and structure
) with two levels each and one within-participants factor
(block
) with four levels. The dependent variable is proportion correct
pc
.
1 |
An object of class data.frame
with 520 rows and 5 columns.
Participants in this study completed one of two category-learning tasks
defined according to the category structure
that participants learned. For
the rule-based (RB) group, the category structure was defined by a simple
rule. For the information-integration (II) group, the category structure was
more complex and could not be defined by a simple rule.
The experiment consisted of four 80-trial block
s for each participant.
Within each block, all 80 stimuli were presented in a random order (with
different orders for each participant). Participants were told to learn which
of four categories (labeled, 1, 2, 3, and 4) each stimulus belonged to. On
each trial, a stimulus was presented, and participants terminated the display
by pressing one of the keys labeled 1-4 on the computer keyboard
corresponding to Categories 1-4, respectively. Following the response, a mask
appeared. The length with which the mask was shown defined the delay
condition. Either 0.5-s (No Delay condition) or 5-s (Delay condition).
Following presentation of the mask, feedback appeared on the computer screen
for 0.75 s. If the response was correct, the word "Correct" was presented;
otherwise, the word "Incorrect" was presented. Following presentation of
feedback, a blank screen followed the duration of which was again defined the
delay
condition. The screen was blank for either 5 s (No Delay condition)
or 0.5 s (Delay condition) before the next trial commenced. The sequence and
timing of these events were same as those used by Maddox and Ing (2005).
Dunn, J. C., Newell, B. R., & Kalish, M. L. (2012). The effect of feedback delay and feedback type on perceptual category learning: The limits of multiple systems. Journal of Experimental Psychology: Learning, Memory, and Cognition, 38(4), 840-859. https://doi.org/10.1037/a0027867
Maddox, W. T., & Ing, A. D. (2005). Delayed Feedback Disrupts the Procedural-Learning System but Not the Hypothesis-Testing System in Perceptual Category Learning. Journal of Experimental Psychology: Learning, Memory, and Cognition, 31(1), 100-107. https://doi.org/10.1037/0278-7393.31.1.100
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | library("stacmr")
## load data from Exp. 1 of Dunn, Newell, & Kalish (2012)
data(delay)
str(delay, width = 78, strict.width = "cut")
# 'data.frame': 520 obs. of 5 variables:
# $ participant: Factor w/ 130 levels "1","2","3","4",..: 1 2 3 4 5 6 7 8 9 1..
# $ delay : Factor w/ 2 levels "delay","no delay": 1 2 2 1 1 2 2 1 1 1 ...
# $ structure : Factor w/ 2 levels "rule-based","information-integration": 1..
# $ block : Factor w/ 4 levels "B1","B2","B3",..: 1 1 1 1 1 1 1 1 1 1 ...
# $ pc : num 0.338 0.287 0.525 0.35 0.237 ...
stats <- sta_stats(
data = delay,
col_value = "pc",
col_participant = "participant",
col_dv = "structure",
col_within = "block",
col_between = "delay"
)
stats
str(stats)
summary(stats)
### cmr() fits conjoint monotonic regression for state-trace analysis
## Fit and test CMR State-Trace Analysis Model
st_d1 <- cmr(
data = delay,
col_value = "pc",
col_participant = "participant",
col_dv = "structure",
col_within = "block",
col_between = "delay",
nsample = 1e4
)
st_d1 ## basic information about conjoint-monotonic model
summary(st_d1) ## basic information plus estimated cell means
# state_trace(st_d1) ## produces state trace plot
# plot_null(st_d1) ## produces histogram of empirical (boot-strapped) null distribution
str(st_d1, 1, give.attr = FALSE) ## overview of information in fitted object
## same model with approximate method gives same result here
st_d2 <- cmr(
data = delay,
col_value = "pc",
col_participant = "participant",
col_dv = "structure",
col_within = "block",
col_between = "delay",
approx = TRUE,
nsample = 1e4
)
summary(st_d2)
### mr() fits monotonic regression with specified partial order
## for delay data: order of factor-levels corresponds to expected partial order.
## Therefore, 'partial = "auto"' can be used to enforce this order.
mr_d1 <- mr(
data = delay,
col_value = "pc",
col_participant = "participant",
col_dv = "structure",
col_within = "block",
col_between = "delay",
nsample = 1e4,
partial = "auto"
)
mr_d1
## Alternatively, partial order can be specified symbolically:
mr_d2 <- mr(
data = delay,
col_value = "pc",
col_participant = "participant",
col_dv = "structure",
col_within = "block",
col_between = "delay",
nsample = 1e4,
partial = list(
delay = "delay < `no delay`",
block = "B1 < B2 < B3 < B4"
)
)
mr_d2
## Partial order can also be specified partially symbolically:
mr_d3 <- mr(
data = delay,
col_value = "pc",
col_participant = "participant",
col_dv = "structure",
col_within = "block",
col_between = "delay",
nsample = 1e4,
partial = list(
delay = "auto",
block = "B1 < B2 < B3 < B4"
)
)
mr_d3
### cmr() also accepts partial order.
## CMR model is tested against MR model with partial order
st_d3 <- cmr(
data = delay,
col_value = "pc",
col_participant = "participant",
col_dv = "structure",
col_within = "block",
col_between = "delay",
partial = "auto"
)
st_d3
summary(st_d3)
## p-value now changes somewhat with approximate method:
st_d4 <- cmr(
data = delay,
col_value = "pc",
col_participant = "participant",
col_dv = "structure",
col_within = "block",
col_between = "delay",
partial = "auto",
approx = TRUE,
nsample = 1e4
)
st_d4
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.