Learn R Programming

The NDL (Naive Discriminative Learning) package

The NDL package implements the Danks Equilibra (read the paper here) for the Rescorla Wagner model of learning (read about the RW model here).

See NEWS for a list of recent changes to the package.

The original paper that describes this model (and which you should use as a citation when reporting ndl models):

Baayen, R. H., Milin, P., Filipovic Durdevic, D., Hendrix, P. and Marelli, M. (2011), An amorphous model for morphological processing in visual comprehension based on naive discriminative learning. Psychological Review 118, 438-482.

can be downloaded from here

See the R documentation for more info and examples. We hope to add a very extensive vignette to the package in the near future.

Copy Link

Version

Install

install.packages('ndl')

Monthly Downloads

199

Version

0.2.18

License

GPL-3

Maintainer

Last Published

September 10th, 2018

Functions in ndl (0.2.18)

danks

Example data from Danks (2003), after Spellman (1996).
lexample

Lexical example data illustrating the Rescorla-Wagner equations
plurals

Artificial data set used to illustrate the Rescorla-Wagner equations and naive discriminative learning.
predict.ndlClassify

Predict method for ndlClassify objects
ndlClassify

Classification using naive discriminative learning.
ndl-package

ndl
serbianLex

Serbian lexicon with 1187 prime-target pairs.
modelStatistics

Calculate a range of goodness of fit measures for an object fitted with some multivariate statistical method that yields probability estimates for outcomes.
plot.RescorlaWagner

Plot function for the output of RescorlaWagner.
plot.ndlClassify

Plot function for selected results of ndlClassify.
serbianUniCyr

Serbian case inflected nouns (in Cyrillic Unicode).
summary.ndlClassify

A summary of a Naive Discriminatory Learning Model
serbianUniLat

Serbian case inflected nouns (in Latin-alphabet Unicode).
summary.ndlCrossvalidate

A summary of a crossvalidation of a Naive Discriminatory Reader Model
dative

Dative Alternation
think

Finnish ‘think’ verbs.
RescorlaWagner

Implementation of the Rescorla-Wagner equations.
estimateActivations

Estimation of the activations of outcomes (meanings)
learn

Count cue-outcome co-occurences needed to run the Danks equations.
estimateWeights

Estimation of the association weights using the equilibrium equations of Danks (2003) for the Rescorla-Wagner equations.
learnLegacy

Count cue-outcome co-occurrences needed to run the Danks equations.
numbers

Example data illustrating the Rescorla-Wagner equations as applied to numerical cognition by Ramscar et al. (2011).
orthoCoding

Code a character string (written word form) as letter n-grams
estimateWeightsCompact

Estimation of the association weights using the equilibrium equations of Danks (2003) for the Rescorla-Wagner equations using a compact binary event file.
acts2probs

Calculate probability matrix from activation matrix, as well as predicted values
ndlVarimp

Permutation variable importance for classification using naive discriminative learning.
ndlStatistics

Calculate goodness of fit statistics for a naive discriminative learning model.
ndlCrossvalidate

Crossvalidation of a Naive Discriminative Learning model.
ndlCuesOutcomes

Creation of dataframe for Naive Discriminative Learning from formula specification
random.pseudoinverse

Calculate an approximation of the pseudoinverse of a matrix.
serbian

Serbian case inflected nouns.
anova.ndlClassify

Analysis of Model Fit for Naive Discriminatory Reader Models
crosstableStatistics

Calculate statistics for a contingency table
cueCoding

code a vector of cues as n-grams