Learn R Programming

⚠️There's a newer version (1.1-5) of this package.Take me there.

gnm

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.

Installation

You can install gnm from github with:

# install.packages("devtools")
devtools::install_github("hturner/gnm")

Code of conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Copy Link

Version

Install

install.packages('gnm')

Monthly Downloads

6,336

Version

1.1-0

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Heather Turner

Last Published

June 21st, 2018

Functions in gnm (1.1-0)

gnm-defunct

Defunct Functions in gnm Package
getContrasts

Estimated Contrasts and Standard Errors for Parameters in a gnm Model
pickCoef

Get Indices or Values of Selected Model Coefficients
summary.gnm

Summarize Generalized Nonlinear Model Fits
residSVD

Multiplicative Approximation of Model Residuals
se.gnm

Standard Errors of Linear Parameter Combinations in gnm Models
plot.gnm

Plot Diagnostics for a gnm Object
gnm-package

Generalized Nonlinear Models
voting

Data on Social Mobility and the Labour Vote
Diag

Equality of Two or More Factors
predict.gnm

Predict Method for Generalized Nonlinear Models
exitInfo

Print Exit Information for gnm Fit
barleyHeights

Heights of Barley Plants
expandCategorical

Expand Data Frame by Re-expressing Categorical Data as Counts
wedderburn

Wedderburn Quasi-likelihood Family
wheat

Wheat Yields from Mexican Field Trials
anova.gnm

Analysis of Deviance for Generalized Nonlinear Models
se

Extract Standard Errors
Topo

Topological Interaction of Factors
profile.gnm

Profile Deviance for Parameters in a Generalized Nonlinear Model
yaish

Class Mobility by Level of Education in Israel
instances

Specify Multiple Instances of a Nonlinear Term in a gnm Model Formula
model.matrix.gnm

Local Design Matrix for a Generalized Nonlinear Model
nonlin.function

Functions to Specify Nonlinear Terms in gnm Models
termPredictors

Extract Term Contributions to Predictor
gnm

Fitting Generalized Nonlinear Models
parameters

Extract Constrained and Estimated Parameters from a gnm Object
ofInterest

Coefficients of Interest in a Generalized Nonlinear Model
vcov.gnm

Variance-covariance Matrix for Parameters in a Generalized Nonlinear Model
MultHomog

Specify a Multiplicative Interaction with Homogeneous Effects in a gnm Model Formula
Exp

Specify the Exponential of a Predictor in a gnm Model Formula
House2001

Data on twenty roll calls in the US House of Representatives, 2001
Const

Specify a Constant in a "nonlin" Function Predictor
MPinv

Moore-Penrose Pseudoinverse of a Real-valued Matrix
Multiplicative interaction

Specify a Product of Predictors in a gnm Model Formula
Inv

Specify the Reciprocal of a Predictor in a gnm Model Formula
Dref

Specify a Diagonal Reference Term in a gnm Model Formula
confint.gnm

Compute Confidence Intervals of Parameters in a Generalized Nonlinear Model
checkEstimable

Check Whether One or More Parameter Combinations in a gnm Model are Identified
Symm

Symmetric Interaction of Factors
cautres

Data on Class, Religion and Vote in France
barley

Jenkyn's Data on Leaf-blotch on Barley
asGnm

Coerce Linear Model to gnm Object
backPain

Data on Back Pain Prognosis, from Anderson (1984)
friend

Occupation of Respondents and Their Closest Friend
meanResiduals

Average Residuals within Factor Levels
mentalHealth

Data on Mental Health and Socioeconomic Status
erikson

Intergenerational Class Mobility in England/Wales, France and Sweden