Feed-Forward Neural Networks and Multinomial Log-Linear Models

Software for feed-forward neural networks with a single hidden layer, and for multinomial log-linear models.


Software and datasets to support 'Modern Applied Statistics with S', fourth edition, by W. N. Venables and B. D. Ripley. Springer, 2002, ISBN 0-387-95457-0.

This file documents software changes since the third edition.

  • no copying of datasets even in R.
  • model.frame method for multinom (even in R).
  • nnet now uses the C interface to optim.
  • nnet.Hess has been renamed nnetHess.
  • vcov.multinom now computes the Hessian analytically (thanks to David Firth).
  • predict methods for multinom, nnet now check newdata types
  • model.frame.multinom now looks for the environment of the original formula
  • multinom has a new `model' argument defaulting to TRUE.
  • the multinom methods for add1, dropterm and anova now check for changes in the number of cases in use caused e.g. by na.action=na.omit.
  • added confint() method for multinom.
  • added logLik() method for multinom.
  • summary() for multinom now defaults to correlation=FALSE.
  • nnet() reports on 'convergence'.
  • confint.multinom() works better with a non-default 'parm'.
  • multinom() and nnet(softmax=TRUE) give an explicit error message for one-category responses.
  • the loglik() method for multinom() returns an "nobs" attribute.
  • vcov() on a "multinom" object works for fits with na.action = "na.exclude".

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


7.3-16 by Brian Ripley, 6 months ago


Browse source code at https://github.com/cran/nnet

Authors: Brian Ripley [aut, cre, cph] , William Venables [cph]

Documentation:   PDF Manual  

Task views: Econometrics, Machine Learning & Statistical Learning, Statistics for the Social Sciences

GPL-2 | GPL-3 license

Depends on stats, utils

Suggests MASS

Imported by BaBooN, BayesTree, Biocomb, CARRoT, CIMTx, CORElearn, CoImp, Compositional, DAMisc, DChaos, DMLLZU, EPX, EffectLiteR, EnsembleBase, Frames2, GDAtools, GLMpack, GMDH2, GPSCDF, Hmisc, Hmsc, IsingSampler, LCAvarsel, LDATS, LUCIDus, MEDseq, MEclustnet, MNLR, MXM, MaOEA, MachineShop, MoEClust, Modeler, NeuralNetTools, NoiseFiltersR, PSweight, PropensitySub, RBtest, RISCA, RRMLRfMC, RTextTools, RVAideMemoire, RaSEn, RclusTool, RecordLinkage, SDMtune, SIDES, SLEMI, SSDM, ShinyItemAnalysis, Sojourn, TSPred, VIM, biomod2, bndovb, brglm2, car, causal.decomp, cfbfastR, chemmodlab, chemometrics, coca, corHMM, cpt, difNLR, diversityForest, drhur, drpop, effects, expose, fRegression, factormodel, factorplot, flexmix, forecast, gWQS, gencve, gesttools, gfoRmula, glm.predict, glmdisc, gnm, gscaLCA, hmi, hmm.discnp, hybridEnsemble, ipred, ipw, isni, ivitr, jmv, kgschart, landmap, logisticRR, mDAG, mExplorer, mcca, mlearning, networktools, nntrf, npcs, ordinalForest, polyreg, pvsR, radiant.model, rasclass, rminer, rties, semiArtificial, seqest, shinyr, sigQC, simPop, soilassessment, sparsebnUtils, spls, synthpop, traineR, tsDyn, visualpred.

Depended on by BART, BarcodingR, CBPS, HIest, HydeNet, LOGICOIL, ModTools, SQB, TBFmultinomial, abc, abn, bcROCsurface, dave, depmixS4, elect, epiDisplay, fdm2id, gamlss.add, gamlss.mx, introgress, partialOR, pocrm, sodavis.

Suggested by AER, AICcmodavg, ALEPlot, BaM, BiodiversityR, CLME, DynTxRegime, ExplainPrediction, GAparsimony, GGally, HandTill2001, MASS, MNLpred, MatchIt, MuMIn, NeuralSens, R2HTML, ROSE, Rcmdr, RcmdrPlugin.IPSUR, RcmdrPlugin.NMBU, RcmdrPlugin.pointG, Sojourn.Data, SuperLearner, analyzer, aplore3, bamlss, boostr, broom, broom.helpers, bruceR, buildmer, butcher, caret, caretEnsemble, catdata, causaldrf, clarkeTest, classmap, condvis2, cvam, cvms, discSurv, e1071, fable, fscaret, generalhoslem, glmglrt, glmulti, gtsummary, hesim, hnp, huxtable, iBreakDown, insight, lda, marginaleffects, mboost, mclogit, mi, mice, mlogit, mlr, mlr3learners, mlrMBO, mlt, mlt.docreg, modelplotr, modelsummary, mvrsquared, nnetpredint, ordinal, parameters, pdp, performanceEstimation, personalized, plot3logit, pmml, psychomix, pubh, rattle, rbart, relimp, seqHMM, shipunov, sparklyr, sperrorest, stablelearner, stacks, validann, vcdExtra, vip.

Enhanced by emmeans, margins, prediction, stargazer, texreg.

See at CRAN