Package: gnm 1.1-5

gnm: Generalized Nonlinear Models

Functions to specify and fit generalized nonlinear models, including models with multiplicative interaction terms such as the UNIDIFF model from sociology and the AMMI model from crop science, and many others. Over-parameterized representations of models are used throughout; functions are provided for inference on estimable parameter combinations, as well as standard methods for diagnostics etc.

Authors:Heather Turner [aut, cre], David Firth [aut], Brian Ripley [ctb], Bill Venables [ctb], Douglas M. Bates [ctb], Martin Maechler [ctb]

gnm_1.1-5.tar.gz
gnm_1.1-5.zip(r-4.5)gnm_1.1-5.zip(r-4.4)gnm_1.1-5.zip(r-4.3)
gnm_1.1-5.tgz(r-4.4-x86_64)gnm_1.1-5.tgz(r-4.4-arm64)gnm_1.1-5.tgz(r-4.3-x86_64)gnm_1.1-5.tgz(r-4.3-arm64)
gnm_1.1-5.tar.gz(r-4.5-noble)gnm_1.1-5.tar.gz(r-4.4-noble)
gnm_1.1-5.tgz(r-4.4-emscripten)gnm_1.1-5.tgz(r-4.3-emscripten)
gnm.pdf |gnm.html
gnm/json (API)
NEWS

# Install 'gnm' in R:
install.packages('gnm', repos = c('https://hturner.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/hturner/gnm/issues

Uses libs:
  • openblas– Optimized BLAS
Datasets:
  • House2001 - Data on twenty roll calls in the US House of Representatives, 2001
  • backPain - Data on Back Pain Prognosis, from Anderson
  • barley - Jenkyn's Data on Leaf-blotch on Barley
  • barleyHeights - Heights of Barley Plants
  • cautres - Data on Class, Religion and Vote in France
  • erikson - Intergenerational Class Mobility in England/Wales, France and Sweden
  • friend - Occupation of Respondents and Their Closest Friend
  • mentalHealth - Data on Mental Health and Socioeconomic Status
  • voting - Data on Social Mobility and the Labour Vote
  • wheat - Wheat Yields from Mexican Field Trials
  • yaish - Class Mobility by Level of Education in Israel

On CRAN:

generalized-linear-modelsgeneralized-nonlinear-modelsstatistical-models

9.41 score 16 stars 20 packages 253 scripts 7.0k downloads 22 mentions 29 exports 6 dependencies

Last updated 1 years agofrom:15bd4a9f1c. Checks:ERROR: 1 WARNING: 8. Indexed: yes.

TargetResultDate
Doc / VignettesFAILNov 07 2024
R-4.5-win-x86_64WARNINGNov 07 2024
R-4.5-linux-x86_64WARNINGNov 07 2024
R-4.4-win-x86_64WARNINGNov 07 2024
R-4.4-mac-x86_64WARNINGNov 07 2024
R-4.4-mac-aarch64WARNINGNov 07 2024
R-4.3-win-x86_64WARNINGNov 07 2024
R-4.3-mac-x86_64WARNINGNov 07 2024
R-4.3-mac-aarch64WARNINGNov 07 2024

Exports:asGnmcheckEstimableConstDiagDrefDrefWeightsexitInfoExpexpandCategoricalgetContrastsgetModelFramegnminstancesInvmeanResidualsMPinvMultMultHomogofInterestofInterest<-parameterspickCoefqrSolveresidSVDseSymmtermPredictorsTopowedderburn

Dependencies:latticeMASSMatrixnnetqvcalcrelimp

Readme and manuals

Help Manual

Help pageTopics
Generalized Nonlinear Modelsgnm-package
Analysis of Deviance for Generalized Nonlinear Modelsanova.gnm
Coerce Linear Model to gnm ObjectasGnm
Data on Back Pain Prognosis, from Anderson (1984)backPain
Jenkyn's Data on Leaf-blotch on Barleybarley
Heights of Barley PlantsbarleyHeights
Data on Class, Religion and Vote in Francecautres
Check Whether One or More Parameter Combinations in a gnm Model are IdentifiedcheckEstimable
Compute Confidence Intervals of Parameters in a Generalized Nonlinear Modelconfint.gnm confint.profile.gnm
Specify a Constant in a "nonlin" Function PredictorConst
Equality of Two or More FactorsDiag
Specify a Diagonal Reference Term in a gnm Model FormulaDref DrefWeights
Intergenerational Class Mobility in England/Wales, France and Swedenerikson
Print Exit Information for gnm FitexitInfo
Specify the Exponential of a Predictor in a gnm Model FormulaExp
Expand Data Frame by Re-expressing Categorical Data as CountsexpandCategorical
Occupation of Respondents and Their Closest Friendfriend
Estimated Contrasts and Standard Errors for Parameters in a gnm ModelgetContrasts
Fitting Generalized Nonlinear Modelsgnm
Data on twenty roll calls in the US House of Representatives, 2001House2001
Specify Multiple Instances of a Nonlinear Term in a gnm Model Formulainstances
Specify the Reciprocal of a Predictor in a gnm Model FormulaInv
Average Residuals within Factor LevelsmeanResiduals
Data on Mental Health and Socioeconomic StatusmentalHealth
Local Design Matrix for a Generalized Nonlinear Modelmodel.matrix.gnm
Moore-Penrose Pseudoinverse of a Real-valued MatrixMPinv
Specify a Multiplicative Interaction with Homogeneous Effects in a gnm Model FormulaMultHomog
Specify a Product of Predictors in a gnm Model FormulaMult
Functions to Specify Nonlinear Terms in gnm Modelsnonlin.function
Coefficients of Interest in a Generalized Nonlinear ModelofInterest ofInterest<-
Extract Constrained and Estimated Parameters from a gnm Objectparameters
Get Indices or Values of Selected Model CoefficientspickCoef
Plot Diagnostics for a gnm Objectplot.gnm
Predict Method for Generalized Nonlinear Modelspredict.gnm
Profile Deviance for Parameters in a Generalized Nonlinear Modelplot.profile.gnm profile.gnm
Multiplicative Approximation of Model ResidualsresidSVD
Standard Errors of Linear Parameter Combinations in gnm Modelsse.gnm
Summarize Generalized Nonlinear Model Fitsprint.summary.gnm summary.gnm
Symmetric Interaction of FactorsSymm
Extract Term Contributions to PredictortermPredictors
Topological Interaction of FactorsTopo
Variance-covariance Matrix for Parameters in a Generalized Nonlinear Modelvcov.gnm
Data on Social Mobility and the Labour Votevoting
Wedderburn Quasi-likelihood Familywedderburn
Wheat Yields from Mexican Field Trialswheat
Class Mobility by Level of Education in Israelyaish