# NOT RUN {
data(lexample)
lexample$Cues <- orthoCoding(lexample$Word, grams=1)
lexample.rw <- RescorlaWagner(lexample, nruns=25,
traceCue="h", traceOutcome="hand")
plot(lexample.rw)
mtext("h - hand", 3, 1)
# Full example
# }
# NOT RUN {
par(mfrow=c(2,2))
lexample.rw <- RescorlaWagner(lexample, nruns=25,
traceCue="h", traceOutcome="hand")
plot(lexample.rw)
mtext("h - hand", 3, 1)
lexample.rw <- RescorlaWagner(lexample, nruns=25,
traceCue="s", traceOutcome="plural")
plot(lexample.rw)
mtext("s - plural", 3, 1)
lexample.rw <- RescorlaWagner(lexample, nruns=25,
traceCue="a", traceOutcome="as")
plot(lexample.rw)
mtext("a - as", 3, 1)
lexample.rw <- RescorlaWagner(lexample, nruns=25,
traceCue="s", traceOutcome="as")
plot(lexample.rw)
mtext("s - as", 3, 1)
par(mfrow=c(1,1))
# }
Run the code above in your browser using DataLab