acts2probs {ndl} | R Documentation |
acts2probs
takes the activation matrix returned by
ndlClassify
and calculates the matrix of probabilities
for the estimated activation matrix, as well as the predicted values
of the response variable.
acts2probs(acts)
acts |
A matrix of activations (number of observations by number of levels of the response variable). |
Probabilities in p
are obtained by adding the absolute value
of the minimum activation to the activation matrix, and
renorming. The selection rule used to produce predicted
is to
choose for each instance in the data the outcome value that has
received the highest probability estimate.
A list with the following components:
p
a matrix with the probabilities of the levels of the response variable for each observation.
predicted
a character vector with predicted values.
Harald Baayen and Antti Arppe
Arppe, A. and Baayen, R. H. (in prep.). Statistical classification and principles of human learning.
See also ndlClassify
.
data(think)
think.ndl <- ndlClassify(Lexeme ~ Person + Number + Agent + Register, data=think)
pdata <- acts2probs(think.ndl$activationMatrix)