Description Usage Arguments Value Author(s) See Also Examples
Extract outcomes from list of weightmatrices.
1 | getOutcomes(wmlist, extra.check = FALSE)
|
wmlist |
A list with weightmatrices, generated by
|
extra.check |
Logical: whether or not to collect all cues from all weightmatrices in the list. Note that this slows down the process and should not result in different findings. Default is FALSE. |
Vector with outcomes.
Jacolien van Rij
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # load example data:
data(dat)
# prepare training data:
dat$Cues <- paste("BG", dat$Shape, dat$Color, sep="_")
dat$Outcomes <- dat$Category
dat$Frequency <- dat$Frequency1
train <- createTrainingData(dat)
# learning:
wm <- RWlearning(train)
# retrieve cues from wm list:
getOutcomes(wm)
# or this version (which takes more time):
system.time({getOutcomes(wm, extra.check=TRUE)})
system.time({getOutcomes(wm)})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.