ndlStatistics function

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

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

ndlStatistics takes an Naive Discriminary Learning model object as generated by ndlClassify and calculates a range of goodness of fit statistics using modelStatistics.

ndlStatistics(ndl, ...)

Arguments

  • ndl: A naive discriminative learning model fitted with ndlClassify.
  • ...: Control arguments to be passed along to modelStatistics.

Returns

A list with the following components:

  • n.data: sum frequency of data points
  • df.null: degrees of freedom of the Null model
  • df.model: degrees of freedom of the fitted model
  • statistics: a list of various measures of goodness of fit calculated with modelStatistics

References

Arppe, A. and Baayen, R. H. (in prep.) Statistical modeling and the principles of human learning.

Author(s)

Antti Arppe and Harald Baayen

See Also

See also ndlClassify, modelStatistics.

Examples

data(think) set.seed(314) think <- think[sample(1:nrow(think),500),] think.ndl <- ndlClassify(Lexeme ~ Agent + Patient, data=think) ndlStatistics(think.ndl) ## Not run: data(dative) dative.ndl <- ndlClassify(RealizationOfRecipient ~ AnimacyOfRec + DefinOfRec + PronomOfRec + AnimacyOfTheme + DefinOfTheme + PronomOfTheme, data=dative) ndlStatistics(dative.ndl) ## End(Not run)
  • Maintainer: Tino Sering
  • License: GPL-3
  • Last published: 2018-09-10

Useful links