Learn R Programming

edl (version 1.1)

getOutcomes: Extract outcomes from list of weightmatrices.

Description

Extract outcomes from list of weightmatrices.

Usage

getOutcomes(wmlist, extra.check = FALSE)

Arguments

wmlist

A list with weightmatrices, generated by RWlearning or updateWeights.

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.

Value

Vector with outcomes.

See Also

getCues, getValues

Examples

Run this code
# NOT RUN {
# 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)})

# }

Run the code above in your browser using DataLab