SlideShare a Scribd company logo
Generalized Nonlinear Models in R
Heather Turner1,2
, David Firth2
and Ioannis Kosmidis3
1 Independent consultant
2 University of Warwick, UK
3 UCL, UK
Turner, Firth & Kosmidis GNM in R ERCIM 2013 1 / 30
Generalized Linear Models
A GLM is made up of a linear predictor
η = β0 + β1x1 + ... + βpxp
and two functions
a link function that describes how the mean, E(Y ) = µ,
depends on the linear predictor
g(µ) = η
a variance function that describes how the variance, V ar(Y )
depends on the mean
V ar(Y ) = φV (µ)
where the dispersion parameter φ is a constant
Turner, Firth & Kosmidis GNM in R ERCIM 2013 2 / 30
Generalized Nonlinear Models
A generalized nonlinear model (GNM) is the same as a GLM
except that we have
g(µ) = η(x; β)
where η(x; β) is nonlinear in the parameters β.
Equivalently an extension of nonlinear least squares model, where the
variance of Y is allowed to depend on the mean.
Using a nonlinear predictor can produce a more parsimonious and
interpretable model.
Turner, Firth & Kosmidis GNM in R ERCIM 2013 3 / 30
Example: Mental Health Status
A study of 1660 children from Manhattan recorded their mental
impairment and parents’ socioeconomic status (Agresti, 2002)
MHS
SES
FEDCBA
well mild moderate impaired
Turner, Firth & Kosmidis GNM in R ERCIM 2013 4 / 30
Independence
A simple analysis of these data might be to test for independence of
MHS and SES using a chi-squared test.
This is equivalent to testing the goodness-of-fit of the independence
model
log(µrc) = αr + βc
Such a test compares the independence model to the saturated model
log(µrc) = αr + βc + γrc
which may be over-complex.
Turner, Firth & Kosmidis GNM in R ERCIM 2013 5 / 30
Row-column Association
One intermediate model is the Row-Column association model:
log(µrc) = αr + βc + φrψc
(Goodman, 1979), an example of a multiplicative interaction model.
For the Mental Health data:
## Analysis of Deviance Table
##
## Model 1: Freq ~ SES + MHS
## Model 2: Freq ~ SES + MHS + Mult(SES , MHS)
## Model 3: Freq ~ SES + MHS + SES:MHS
## Resid. Df Resid. Dev Df Deviance Pr(>Chi)
## 1 15 47.4
## 2 8 3.6 7 43.8 2.3e-07
## 3 0 0.0 8 3.6 0.89
Turner, Firth & Kosmidis GNM in R ERCIM 2013 6 / 30
Parameterisation
The independence model was defined earlier in an over-parameterised
form:
log(µrc) = αr + βc
= (αr + 1) + (βc − 1)
= α∗
r + β∗
c
Identifiability constraints may be imposed
to fix a one-to-one mapping between parameter values and
distributions
to enable interpretation of parameters
Turner, Firth & Kosmidis GNM in R ERCIM 2013 7 / 30
Standard Implementation
The standard approach of all major statistical software packages is to
apply the identifiability constraints in the construction of the model
g(µ) = Xβ
so that rank(X) is equal to the number of parameters p.
Then the inverse in the score equations of the IWLS algorithm
β(r+1)
= XT
W (r)
X
−1
XT
W (r)
z(r)
exists.
Turner, Firth & Kosmidis GNM in R ERCIM 2013 8 / 30
Alternative Implementation
The gnm package for R works with over-parameterised models, where
rank(X) < p, and uses the generalised inverse in the IWLS updates:
β(r+1)
= XT
W (r)
X
−
XT
W (r)
z(r)
This approach is more useful for GNMs, where it is much harder to
define standard rules for specifying identifiability constraints.
Rather, identifiability constraints can be applied post-fitting for
inference and interpretation.
Turner, Firth & Kosmidis GNM in R ERCIM 2013 9 / 30
Estimation of GNMs
GNMs present further technical difficulties vs. GLMs
automatic generation of starting values is hard
the likelihood may have multiple optima
The default approach of the gnm function in package gnm is to:
generate starting values randomly for nonlinear parameters and
using a GLM fit for linear parameters
use one-parameter-at-a-time Newton method to update
nonlinear parameters
use the generalized IWLS to update all parameters
Consequently, the parameterisation returned is random.
Turner, Firth & Kosmidis GNM in R ERCIM 2013 10 / 30
Parameterisation of RC Model
The RC model is invariant to changes in scale or location of the
interaction parameters:
log(µrc) = αr + βc + φrψc
= αr + βc + (2φr)(0.5ψc)
= αr + (βc − ψc) + (φr + 1)(ψc)
One way to constrain these parameters is as follows
φ∗
r =
φr − r wrφr
r wr
r wr φr − r wrφr
r wr
where wr is the row probability, say, so that
r
wrφ∗
r = 0
r
wr(φ∗
r)2
= 1
Turner, Firth & Kosmidis GNM in R ERCIM 2013 11 / 30
Row and Column Scores
These scores and their standard errors can be obtained via the
getContrasts function in the gnm package
## Estimate Std. Error
## Mult(., MHS).SESA 1.11 0.30
## Mult(., MHS).SESB 1.12 0.31
## Mult(., MHS).SESC 0.37 0.32
## Mult(., MHS).SESD -0.03 0.27
## Mult(., MHS).SESE -1.01 0.31
## Mult(., MHS).SESF -1.82 0.28
## Estimate Std. Error
## Mult(SES , .).MHSwell 1.68 0.19
## Mult(SES , .).MHSmild 0.14 0.20
## Mult(SES , .). MHSmoderate -0.14 0.28
## Mult(SES , .). MHSimpaired -1.41 0.17
Turner, Firth & Kosmidis GNM in R ERCIM 2013 12 / 30
Stereotype Model
The stereotype model (Anderson, 1984) is suitable for ordered
categorical data. It is a special case of the multinomial logistic model:
pr(yi = c|xi) =
exp(β0c + βT
c xi)
r exp(β0r + βT
r xi)
in which only the scale of the relationship with the covariates changes
between categories:
pr(yi = c|xi) =
exp(β0c + γcβT
xi)
r exp(β0r + γrβT
xi)
Turner, Firth & Kosmidis GNM in R ERCIM 2013 13 / 30
Poisson Trick
The stereotype model can be fitted as a GNM by re-expressing the
categorical data as category counts Yi = (Yi1, . . . , Yik).
Assuming a Poisson distribution for Yic, the joint distribution of Yi is
Multinomial(Ni, pi1, . . . , pik) conditional on the total count Ni.
The expected counts are then µic = Nipic and the parameters of the
sterotype model can be estimated through fitting
log µic = log(Ni) + log(pic)
= αi + β0c + γc
r
βrxir
where the “nuisance” parameters αi ensure that the multinomial
denominators are reproduced exactly, as required.
Turner, Firth & Kosmidis GNM in R ERCIM 2013 14 / 30
Augmented Least Squares
A disadvantage of using the Poisson trick is that the number of
nuisance parameters can be large, making computation slow.
The algorithm can be adapted using augmented least squares.
For an ordinary least squares model,
(y|X)T
(y|X)
−1
=
yT
y yT
X
XT
y XT
X
−1
=
A11 A12
A21 A22
where A11, A12 and A22 are functions of yT
y, XT
y and XT
X.
Then it can be shown that
ˆβ = (XT
X)−1
XT
y = −
A21
A11
requiring only the first row (column) of the inverse to be found.
Turner, Firth & Kosmidis GNM in R ERCIM 2013 15 / 30
Application to Nuisance Parameters I
The same approach can be applied to the IWLS algorithm, letting
˜X = W
1
2 (z|X)
Now let
˜X = (U|V )
where V is the part of the design matrix corresponding to the
nuisance factor.
U is an nk × p matrix where n is the number of nuisance parameters
and k is the number of categories and p is the number of model
parameters, typically with n >> p.
V is an nk × n matrix of dummy variables identifying each individual.
Turner, Firth & Kosmidis GNM in R ERCIM 2013 16 / 30
Application to Nuisance Parameters II
Then
( ˜X
T
˜X)−
=
UT
U UT
V
V T
U V T
V
−
=
B11 B12
B21 B22
Again, only the first row (column) of this generalised inverse is
required to estimate ˆβ, so we are only interested in B11 and B12.
B11 = (UT
U − UT
V (V T
V )−1
V T
U)−
B12 = −(V T
V )−1
V T
UB11
Turner, Firth & Kosmidis GNM in R ERCIM 2013 17 / 30
Elimination of the Nuisance Factor
UT
U is p × p, therefore not expensive to compute.
V T
V and V T
U can be computed without constructing the large
nk × n matrix V , due to the stucture of V
V T
V is diagonal and the non-zero elements can be computed
directly
V T
U is equivalent to aggregating the rows of U by levels of the
nuisance factor
Thus we only need to construct the U matrix, saving memory and
reducing the computational burden.
This approach is invoked using the eliminate argument to gnm.
Turner, Firth & Kosmidis GNM in R ERCIM 2013 18 / 30
Example: Back Pain Data
For 101 patients, 3 prognostic variables were recorded at baseline,
then after 3 weeks the level of back pain was recorded (Anderson,
1984)
These data can be converted to counts using the
expandCategorical function, giving for the first record:
## x1 x2 x3 pain count id
## 1 1 1 1 worse 0 1
## 1.1 1 1 1 same 1 1
## 1.2 1 1 1 slight. improvement 0 1
## 1.3 1 1 1 moderate.improvement 0 1
## 1.4 1 1 1 marked. improvement 0 1
## 1.5 1 1 1 complete.relief 0 1
Turner, Firth & Kosmidis GNM in R ERCIM 2013 19 / 30
Back Pain Model
The expanded data set has only 606 records and the total number of
parameters is only 115 (9 nonlinear). So the model is quick to fit:
system.time({
m <- gnm(count ~ id + pain + Mult(pain, x1 + x2 + x3),
family = poisson, data = backPainLong, verbose = FALSE)
})[3]
## elapsed
## 0.268
However, eliminating the linear parameters reduces the run time by
more than two thirds, showing the potential of this technique.
system.time(m2 <- update(m, eliminate = id))[3]
## elapsed
## 0.088
Turner, Firth & Kosmidis GNM in R ERCIM 2013 20 / 30
Rasch Models
Rasch models are used in Item Response Theory to model the binary
responses of subjects over a set of items.
The simplest one parameter logistic (1PL) model has the form
log
πis
1 − πis
= αi + γs
The one-dimensional Rasch model extends the 1PL as follows:
log
πis
1 − πis
= αi + βiγs
where βi measures the discrimination of item i: the larger βi the
steeper the item-response function that maps γs to πis.
Turner, Firth & Kosmidis GNM in R ERCIM 2013 21 / 30
Example: US House of Representatives
Votes on 20 roll calls selected by Americans for Democratic Action (ADA)
BankruptcyOverhaul.Yes
ErgonomicsRuleDisapproval.No
IncomeTaxReduction.No
MarriageTaxReduction.Yes
EstateTaxRelief.Yes
FetalProtection.No
SchoolVouchers.No
TaxCutReconciliationBill.No
CampaignFinanceReform.No
FlagDesecration.No
FaithBasedInitiative.Yes
ChinaNormalizedTradeRelations.Yes
ANWRDrillingBan.Yes
PatientsRightsHMOLiability.No
PatientsBillOfRights.No
DomesticPartnerBenefits.No
USMilitaryPersonnelOverseasAbortions.Yes
AntiTerrorismAuthority.No
EconomicStimulus.No
TradePromotionAuthorityFastTrack.No
Vote For Against Party Democrat Republican Other
Turner, Firth & Kosmidis GNM in R ERCIM 2013 22 / 30
Complete Separation
For representatives that always vote “For” or “Against” the ASA
position, maximum likelihood will produce infinite γs estimates, so
that the fitted probabilities are 0 or 1.
Two possible remedies:
1. Add δ to yis and 2δ to the totals nis
hard to quantify effect of adjustment
different δ give different results
2. Bias reduction (Firth, 1993; Kosmidis and Firth, 2009)
requires identifiable parameterization
Turner, Firth & Kosmidis GNM in R ERCIM 2013 23 / 30
Bias Reduction in the 1D Rasch Model
ML estimates are obtained by solving the score equations, which for
the one dimensional Rasch model with θ = (αT
, βT
, γT
)T
are
Ut =
I
i=1
S
s=1
(yis − nisπis)zist = 0
where zist = ∂ηis/∂θt.
The bias reduction method of Kosmidis and Firth (2009) works by
adjusting the scores, in this case giving
U∗
t =
I
i=1
S
s=1
yis +
1
2
his + cisvis − (nis + his)πis zist = 0
where vis, his and cis are depend on the model parameters.
Turner, Firth & Kosmidis GNM in R ERCIM 2013 24 / 30
Identifiability in the 1D Rasch Model
In order to identify the parameters in 1D Rasch model
log
πis
1 − πis
= αi + βiγs
the scale of the βi and the location of the γs must be constrained.
This can be achieved by fixing one of the βi and one of the γs.
Here we will select one βi and one γs at random and fix them to their
ML estimates based on data that have been δ adjusted.
Turner, Firth & Kosmidis GNM in R ERCIM 2013 25 / 30
Bias Reduction Algorithm
The bias adjustment suggests the following iterative scheme
1. Evaluate bias adjusted responses and totals given θ(i)
2. Fit the 1D Rasch model to the adjusted data using ML
Unfortunately the cis quantities are unbounded and can produce
adjusted yis < 0 or > nis
redefine yis and nis to avoid this
Adding a further iteration loop to IWLS adds significantly to the
computation time, therefore good starting values are important
if ML estimates finite use these
else use ML estimates found by δ adjustment
Turner, Firth & Kosmidis GNM in R ERCIM 2013 26 / 30
Liberality of US Representatives
All the ˆβi are < 0, hence smaller ˆγs implies larger probability of
voting for the ADA position, i.e. more liberal.
Turner, Firth & Kosmidis GNM in R ERCIM 2013 27 / 30
Comparison Intervals
Adding intervals based on quasi-standard errors that are invariant to
the parameter constraints (Firth and de Menezes, 2004):
Turner, Firth & Kosmidis GNM in R ERCIM 2013 28 / 30
Summary
Working with over-parameterized models enables a general
framework to be implemented for GNMs
Some of the computational methods from GLMs can be applied
directly to GNMs. . .
. . . whilst others require much more work!
Further examples can be found in the help files and manual
accompanying the gnm package which is available on CRAN.
Turner, Firth & Kosmidis GNM in R ERCIM 2013 29 / 30
References
Agresti, A. (2002). Categorical Data Analysis (2nd ed.). New York: Wiley.
Anderson, J. A. (1984). Regression and Ordered Categorical Variables. J.
R. Statist. Soc. B 46(1), 1–30.
Firth, D. (1993). Bias reduction of maximum likelihood estimates.
Biometrika 80(1), 27–38.
Firth, D. and R. X. de Menezes (2004). Quasi-variances. Biometrika 91,
65–80.
Goodman, L. A. (1979). Simple models for the analysis of association in
cross-classifications having ordered categories. J. Amer. Statist.
Assoc. 74, 537–552.
Kosmidis, I. and D. Firth (2009). Bias reduction in exponential family
nonlinear models. Biometrika 96(4), 793–804.
Turner, Firth & Kosmidis GNM in R ERCIM 2013 30 / 30

More Related Content

What's hot

"Principal Component Analysis - the original paper" presentation @ Papers We ...
"Principal Component Analysis - the original paper" presentation @ Papers We ..."Principal Component Analysis - the original paper" presentation @ Papers We ...
"Principal Component Analysis - the original paper" presentation @ Papers We ...
Adrian Florea
 
Linear regression in machine learning
Linear regression in machine learningLinear regression in machine learning
Linear regression in machine learning
Shajun Nisha
 
5. Linear Algebra for Machine Learning: Singular Value Decomposition and Prin...
5. Linear Algebra for Machine Learning: Singular Value Decomposition and Prin...5. Linear Algebra for Machine Learning: Singular Value Decomposition and Prin...
5. Linear Algebra for Machine Learning: Singular Value Decomposition and Prin...
Ceni Babaoglu, PhD
 
3. Linear Algebra for Machine Learning: Factorization and Linear Transformations
3. Linear Algebra for Machine Learning: Factorization and Linear Transformations3. Linear Algebra for Machine Learning: Factorization and Linear Transformations
3. Linear Algebra for Machine Learning: Factorization and Linear Transformations
Ceni Babaoglu, PhD
 
Support Vector Machines
Support Vector MachinesSupport Vector Machines
Support Vector Machinesnextlib
 
My Lecture Notes from Linear Algebra
My Lecture Notes fromLinear AlgebraMy Lecture Notes fromLinear Algebra
My Lecture Notes from Linear Algebra
Paul R. Martin
 
An Overview of Simple Linear Regression
An Overview of Simple Linear RegressionAn Overview of Simple Linear Regression
An Overview of Simple Linear Regression
Georgian Court University
 
Lasso and ridge regression
Lasso and ridge regressionLasso and ridge regression
Lasso and ridge regression
SreerajVA
 
Ensemble Learning and Random Forests
Ensemble Learning and Random ForestsEnsemble Learning and Random Forests
Ensemble Learning and Random Forests
CloudxLab
 
Trace of Matrix - Linear Algebra
Trace of Matrix - Linear AlgebraTrace of Matrix - Linear Algebra
Trace of Matrix - Linear Algebra
SiddhantDixit6
 
Generalized additives models (gam)
Generalized additives models (gam)Generalized additives models (gam)
Generalized additives models (gam)
AursTCHICHE
 
Machine Learning lecture4(logistic regression)
Machine Learning lecture4(logistic regression)Machine Learning lecture4(logistic regression)
Machine Learning lecture4(logistic regression)
cairo university
 
Dimensionality reduction: SVD and its applications
Dimensionality reduction: SVD and its applicationsDimensionality reduction: SVD and its applications
Dimensionality reduction: SVD and its applications
Viet-Trung TRAN
 
Confusion matrix, accuracy, precision, recall, f score
Confusion matrix, accuracy, precision, recall, f scoreConfusion matrix, accuracy, precision, recall, f score
Confusion matrix, accuracy, precision, recall, f score
Saurabh Singh
 
PCA (Principal component analysis)
PCA (Principal component analysis)PCA (Principal component analysis)
PCA (Principal component analysis)
Learnbay Datascience
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
zcreichenbach
 
Lesson 2 stationary_time_series
Lesson 2 stationary_time_seriesLesson 2 stationary_time_series
Lesson 2 stationary_time_series
ankit_ppt
 
Least square method
Least square methodLeast square method
Least square methodSomya Bagai
 
Principal Component Analysis
Principal Component AnalysisPrincipal Component Analysis
Principal Component Analysis
Ricardo Wendell Rodrigues da Silveira
 

What's hot (20)

"Principal Component Analysis - the original paper" presentation @ Papers We ...
"Principal Component Analysis - the original paper" presentation @ Papers We ..."Principal Component Analysis - the original paper" presentation @ Papers We ...
"Principal Component Analysis - the original paper" presentation @ Papers We ...
 
Linear regression in machine learning
Linear regression in machine learningLinear regression in machine learning
Linear regression in machine learning
 
5. Linear Algebra for Machine Learning: Singular Value Decomposition and Prin...
5. Linear Algebra for Machine Learning: Singular Value Decomposition and Prin...5. Linear Algebra for Machine Learning: Singular Value Decomposition and Prin...
5. Linear Algebra for Machine Learning: Singular Value Decomposition and Prin...
 
3. Linear Algebra for Machine Learning: Factorization and Linear Transformations
3. Linear Algebra for Machine Learning: Factorization and Linear Transformations3. Linear Algebra for Machine Learning: Factorization and Linear Transformations
3. Linear Algebra for Machine Learning: Factorization and Linear Transformations
 
Support Vector Machines
Support Vector MachinesSupport Vector Machines
Support Vector Machines
 
My Lecture Notes from Linear Algebra
My Lecture Notes fromLinear AlgebraMy Lecture Notes fromLinear Algebra
My Lecture Notes from Linear Algebra
 
An Overview of Simple Linear Regression
An Overview of Simple Linear RegressionAn Overview of Simple Linear Regression
An Overview of Simple Linear Regression
 
Lasso and ridge regression
Lasso and ridge regressionLasso and ridge regression
Lasso and ridge regression
 
Support Vector Machine
Support Vector MachineSupport Vector Machine
Support Vector Machine
 
Ensemble Learning and Random Forests
Ensemble Learning and Random ForestsEnsemble Learning and Random Forests
Ensemble Learning and Random Forests
 
Trace of Matrix - Linear Algebra
Trace of Matrix - Linear AlgebraTrace of Matrix - Linear Algebra
Trace of Matrix - Linear Algebra
 
Generalized additives models (gam)
Generalized additives models (gam)Generalized additives models (gam)
Generalized additives models (gam)
 
Machine Learning lecture4(logistic regression)
Machine Learning lecture4(logistic regression)Machine Learning lecture4(logistic regression)
Machine Learning lecture4(logistic regression)
 
Dimensionality reduction: SVD and its applications
Dimensionality reduction: SVD and its applicationsDimensionality reduction: SVD and its applications
Dimensionality reduction: SVD and its applications
 
Confusion matrix, accuracy, precision, recall, f score
Confusion matrix, accuracy, precision, recall, f scoreConfusion matrix, accuracy, precision, recall, f score
Confusion matrix, accuracy, precision, recall, f score
 
PCA (Principal component analysis)
PCA (Principal component analysis)PCA (Principal component analysis)
PCA (Principal component analysis)
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 
Lesson 2 stationary_time_series
Lesson 2 stationary_time_seriesLesson 2 stationary_time_series
Lesson 2 stationary_time_series
 
Least square method
Least square methodLeast square method
Least square method
 
Principal Component Analysis
Principal Component AnalysisPrincipal Component Analysis
Principal Component Analysis
 

Viewers also liked

Custom Functions for Specifying Nonlinear Terms to gnm
Custom Functions for Specifying Nonlinear Terms to gnmCustom Functions for Specifying Nonlinear Terms to gnm
Custom Functions for Specifying Nonlinear Terms to gnmhtstatistics
 
Market Practice Series (Credit Losses Modeling)
Market Practice Series (Credit Losses Modeling)Market Practice Series (Credit Losses Modeling)
Market Practice Series (Credit Losses Modeling)
Yahya Kamel
 
"Тормоза" для управления проектами
"Тормоза" для управления проектами"Тормоза" для управления проектами
"Тормоза" для управления проектами
Евгений Пикулев
 
Wireless industrial alarm adapter solution overview - q42015
Wireless industrial alarm adapter   solution overview - q42015Wireless industrial alarm adapter   solution overview - q42015
Wireless industrial alarm adapter solution overview - q42015
stumanley
 
『iTunes uと大学教育』のご紹介
『iTunes uと大学教育』のご紹介『iTunes uと大学教育』のご紹介
『iTunes uと大学教育』のご紹介綾子 宮崎
 
Kindle勉強会資料
Kindle勉強会資料Kindle勉強会資料
Kindle勉強会資料
綾子 宮崎
 
Collaborative Solutions eHealth Event - Active Health Tech
Collaborative Solutions eHealth Event - Active Health TechCollaborative Solutions eHealth Event - Active Health Tech
Collaborative Solutions eHealth Event - Active Health TechCollaborative Solutions
 
Искусственный камень от "Арт-Кам"
Искусственный камень от "Арт-Кам"Искусственный камень от "Арт-Кам"
Искусственный камень от "Арт-Кам"Андрей Соколов
 
Latest innovations in technology
Latest innovations in technologyLatest innovations in technology
Latest innovations in technologyRaj Pranay
 
Developing Social Media as a Sales Channel
Developing Social Media as a Sales ChannelDeveloping Social Media as a Sales Channel
Developing Social Media as a Sales Channel
Reach China Holdings Limited
 
ציור חברתי
ציור חברתי  ציור חברתי
ציור חברתי
Hadassa Gorohovski
 
Scientists and alchemist מדענים ואלכימאים באמנות
Scientists and alchemist   מדענים ואלכימאים באמנותScientists and alchemist   מדענים ואלכימאים באמנות
Scientists and alchemist מדענים ואלכימאים באמנות
Hadassa Gorohovski
 

Viewers also liked (15)

Custom Functions for Specifying Nonlinear Terms to gnm
Custom Functions for Specifying Nonlinear Terms to gnmCustom Functions for Specifying Nonlinear Terms to gnm
Custom Functions for Specifying Nonlinear Terms to gnm
 
Market Practice Series (Credit Losses Modeling)
Market Practice Series (Credit Losses Modeling)Market Practice Series (Credit Losses Modeling)
Market Practice Series (Credit Losses Modeling)
 
"Тормоза" для управления проектами
"Тормоза" для управления проектами"Тормоза" для управления проектами
"Тормоза" для управления проектами
 
Wireless industrial alarm adapter solution overview - q42015
Wireless industrial alarm adapter   solution overview - q42015Wireless industrial alarm adapter   solution overview - q42015
Wireless industrial alarm adapter solution overview - q42015
 
『iTunes uと大学教育』のご紹介
『iTunes uと大学教育』のご紹介『iTunes uと大学教育』のご紹介
『iTunes uと大学教育』のご紹介
 
Kindle勉強会資料
Kindle勉強会資料Kindle勉強会資料
Kindle勉強会資料
 
Collaborative Solutions eHealth Event - Active Health Tech
Collaborative Solutions eHealth Event - Active Health TechCollaborative Solutions eHealth Event - Active Health Tech
Collaborative Solutions eHealth Event - Active Health Tech
 
Искусственный камень от "Арт-Кам"
Искусственный камень от "Арт-Кам"Искусственный камень от "Арт-Кам"
Искусственный камень от "Арт-Кам"
 
Word press in 60 minutes
Word press in 60 minutesWord press in 60 minutes
Word press in 60 minutes
 
Latest innovations in technology
Latest innovations in technologyLatest innovations in technology
Latest innovations in technology
 
Developing Social Media as a Sales Channel
Developing Social Media as a Sales ChannelDeveloping Social Media as a Sales Channel
Developing Social Media as a Sales Channel
 
Imagen global sistemas_ivc
Imagen global sistemas_ivcImagen global sistemas_ivc
Imagen global sistemas_ivc
 
ציור חברתי
ציור חברתי  ציור חברתי
ציור חברתי
 
Scientists and alchemist מדענים ואלכימאים באמנות
Scientists and alchemist   מדענים ואלכימאים באמנותScientists and alchemist   מדענים ואלכימאים באמנות
Scientists and alchemist מדענים ואלכימאים באמנות
 
CS Education Event - Program Overview
CS Education Event - Program OverviewCS Education Event - Program Overview
CS Education Event - Program Overview
 

Similar to Generalized Nonlinear Models in R

Subquad multi ff
Subquad multi ffSubquad multi ff
Subquad multi ff
Fabian Velazquez
 
Cmb part3
Cmb part3Cmb part3
An investigation of inference of the generalized extreme value distribution b...
An investigation of inference of the generalized extreme value distribution b...An investigation of inference of the generalized extreme value distribution b...
An investigation of inference of the generalized extreme value distribution b...
Alexander Decker
 
Finite frequency H∞ control for wind turbine systems in T-S form
Finite frequency H∞ control for wind turbine systems in T-S formFinite frequency H∞ control for wind turbine systems in T-S form
Finite frequency H∞ control for wind turbine systems in T-S form
International Journal of Power Electronics and Drive Systems
 
CLIM Fall 2017 Course: Statistics for Climate Research, Statistics of Climate...
CLIM Fall 2017 Course: Statistics for Climate Research, Statistics of Climate...CLIM Fall 2017 Course: Statistics for Climate Research, Statistics of Climate...
CLIM Fall 2017 Course: Statistics for Climate Research, Statistics of Climate...
The Statistical and Applied Mathematical Sciences Institute
 
Bayesian Inference and Uncertainty Quantification for Inverse Problems
Bayesian Inference and Uncertainty Quantification for Inverse ProblemsBayesian Inference and Uncertainty Quantification for Inverse Problems
Bayesian Inference and Uncertainty Quantification for Inverse Problems
Matt Moores
 
Talk at SciCADE2013 about "Accelerated Multiple Precision ODE solver base on ...
Talk at SciCADE2013 about "Accelerated Multiple Precision ODE solver base on ...Talk at SciCADE2013 about "Accelerated Multiple Precision ODE solver base on ...
Talk at SciCADE2013 about "Accelerated Multiple Precision ODE solver base on ...
Shizuoka Inst. Science and Tech.
 
Presentation.pdf
Presentation.pdfPresentation.pdf
Presentation.pdf
Chiheb Ben Hammouda
 
Chang etal 2012a
Chang etal 2012aChang etal 2012a
Chang etal 2012a
Arthur Weglein
 
Finite-difference modeling, accuracy, and boundary conditions- Arthur Weglein...
Finite-difference modeling, accuracy, and boundary conditions- Arthur Weglein...Finite-difference modeling, accuracy, and boundary conditions- Arthur Weglein...
Finite-difference modeling, accuracy, and boundary conditions- Arthur Weglein...
Arthur Weglein
 
E33018021
E33018021E33018021
E33018021
IJERA Editor
 
Adaptive dynamic programming algorithm for uncertain nonlinear switched systems
Adaptive dynamic programming algorithm for uncertain nonlinear switched systemsAdaptive dynamic programming algorithm for uncertain nonlinear switched systems
Adaptive dynamic programming algorithm for uncertain nonlinear switched systems
International Journal of Power Electronics and Drive Systems
 
Tucker tensor analysis of Matern functions in spatial statistics
Tucker tensor analysis of Matern functions in spatial statistics Tucker tensor analysis of Matern functions in spatial statistics
Tucker tensor analysis of Matern functions in spatial statistics
Alexander Litvinenko
 
計算材料学
計算材料学計算材料学
Nonnegative Matrix Factorization with Side Information for Time Series Recove...
Nonnegative Matrix Factorization with Side Information for Time Series Recove...Nonnegative Matrix Factorization with Side Information for Time Series Recove...
Nonnegative Matrix Factorization with Side Information for Time Series Recove...
Paris Women in Machine Learning and Data Science
 
lecture6.ppt
lecture6.pptlecture6.ppt
lecture6.ppt
AbhiYadav655132
 
MUMS: Bayesian, Fiducial, and Frequentist Conference - Model Selection in the...
MUMS: Bayesian, Fiducial, and Frequentist Conference - Model Selection in the...MUMS: Bayesian, Fiducial, and Frequentist Conference - Model Selection in the...
MUMS: Bayesian, Fiducial, and Frequentist Conference - Model Selection in the...
The Statistical and Applied Mathematical Sciences Institute
 
PCA on graph/network
PCA on graph/networkPCA on graph/network
PCA on graph/network
Daisuke Yoneoka
 
Approximate Thin Plate Spline Mappings
Approximate Thin Plate Spline MappingsApproximate Thin Plate Spline Mappings
Approximate Thin Plate Spline Mappings
Archzilon Eshun-Davies
 

Similar to Generalized Nonlinear Models in R (20)

Subquad multi ff
Subquad multi ffSubquad multi ff
Subquad multi ff
 
Cmb part3
Cmb part3Cmb part3
Cmb part3
 
An investigation of inference of the generalized extreme value distribution b...
An investigation of inference of the generalized extreme value distribution b...An investigation of inference of the generalized extreme value distribution b...
An investigation of inference of the generalized extreme value distribution b...
 
Finite frequency H∞ control for wind turbine systems in T-S form
Finite frequency H∞ control for wind turbine systems in T-S formFinite frequency H∞ control for wind turbine systems in T-S form
Finite frequency H∞ control for wind turbine systems in T-S form
 
CLIM Fall 2017 Course: Statistics for Climate Research, Statistics of Climate...
CLIM Fall 2017 Course: Statistics for Climate Research, Statistics of Climate...CLIM Fall 2017 Course: Statistics for Climate Research, Statistics of Climate...
CLIM Fall 2017 Course: Statistics for Climate Research, Statistics of Climate...
 
Bayesian Inference and Uncertainty Quantification for Inverse Problems
Bayesian Inference and Uncertainty Quantification for Inverse ProblemsBayesian Inference and Uncertainty Quantification for Inverse Problems
Bayesian Inference and Uncertainty Quantification for Inverse Problems
 
Talk at SciCADE2013 about "Accelerated Multiple Precision ODE solver base on ...
Talk at SciCADE2013 about "Accelerated Multiple Precision ODE solver base on ...Talk at SciCADE2013 about "Accelerated Multiple Precision ODE solver base on ...
Talk at SciCADE2013 about "Accelerated Multiple Precision ODE solver base on ...
 
Presentation.pdf
Presentation.pdfPresentation.pdf
Presentation.pdf
 
Chang etal 2012a
Chang etal 2012aChang etal 2012a
Chang etal 2012a
 
Finite-difference modeling, accuracy, and boundary conditions- Arthur Weglein...
Finite-difference modeling, accuracy, and boundary conditions- Arthur Weglein...Finite-difference modeling, accuracy, and boundary conditions- Arthur Weglein...
Finite-difference modeling, accuracy, and boundary conditions- Arthur Weglein...
 
E33018021
E33018021E33018021
E33018021
 
Adaptive dynamic programming algorithm for uncertain nonlinear switched systems
Adaptive dynamic programming algorithm for uncertain nonlinear switched systemsAdaptive dynamic programming algorithm for uncertain nonlinear switched systems
Adaptive dynamic programming algorithm for uncertain nonlinear switched systems
 
Tucker tensor analysis of Matern functions in spatial statistics
Tucker tensor analysis of Matern functions in spatial statistics Tucker tensor analysis of Matern functions in spatial statistics
Tucker tensor analysis of Matern functions in spatial statistics
 
計算材料学
計算材料学計算材料学
計算材料学
 
Nonnegative Matrix Factorization with Side Information for Time Series Recove...
Nonnegative Matrix Factorization with Side Information for Time Series Recove...Nonnegative Matrix Factorization with Side Information for Time Series Recove...
Nonnegative Matrix Factorization with Side Information for Time Series Recove...
 
lecture6.ppt
lecture6.pptlecture6.ppt
lecture6.ppt
 
MUMS: Bayesian, Fiducial, and Frequentist Conference - Model Selection in the...
MUMS: Bayesian, Fiducial, and Frequentist Conference - Model Selection in the...MUMS: Bayesian, Fiducial, and Frequentist Conference - Model Selection in the...
MUMS: Bayesian, Fiducial, and Frequentist Conference - Model Selection in the...
 
PCA on graph/network
PCA on graph/networkPCA on graph/network
PCA on graph/network
 
Approximate Thin Plate Spline Mappings
Approximate Thin Plate Spline MappingsApproximate Thin Plate Spline Mappings
Approximate Thin Plate Spline Mappings
 
Dkd 4 2-sheet_1_annex_a
Dkd 4 2-sheet_1_annex_aDkd 4 2-sheet_1_annex_a
Dkd 4 2-sheet_1_annex_a
 

More from htstatistics

Sample slides from "Programming with R" course
Sample slides from "Programming with R" courseSample slides from "Programming with R" course
Sample slides from "Programming with R" course
htstatistics
 
Sample slides from "Getting Started with R" course
Sample slides from "Getting Started with R" courseSample slides from "Getting Started with R" course
Sample slides from "Getting Started with R" course
htstatistics
 
Generalized Bradley-Terry Modelling of Football Results
Generalized Bradley-Terry Modelling of Football ResultsGeneralized Bradley-Terry Modelling of Football Results
Generalized Bradley-Terry Modelling of Football Results
htstatistics
 
From L to N: Nonlinear Predictors in Generalized Models
From L to N: Nonlinear Predictors in Generalized ModelsFrom L to N: Nonlinear Predictors in Generalized Models
From L to N: Nonlinear Predictors in Generalized Modelshtstatistics
 
Modelling the Diluting Effect of Social Mobility on Health Inequality
Modelling the Diluting Effect of Social Mobility on Health InequalityModelling the Diluting Effect of Social Mobility on Health Inequality
Modelling the Diluting Effect of Social Mobility on Health Inequalityhtstatistics
 
Detecting Drug Effects in the Brain
Detecting Drug Effects in the BrainDetecting Drug Effects in the Brain
Detecting Drug Effects in the Brainhtstatistics
 
Clustering Microarray Data
Clustering Microarray DataClustering Microarray Data
Clustering Microarray Datahtstatistics
 
Multiplicative Interaction Models in R
Multiplicative Interaction Models in RMultiplicative Interaction Models in R
Multiplicative Interaction Models in Rhtstatistics
 
gnm: a Package for Generalized Nonlinear Models
gnm: a Package for Generalized Nonlinear Modelsgnm: a Package for Generalized Nonlinear Models
gnm: a Package for Generalized Nonlinear Modelshtstatistics
 
Nonlinear Discrete-time Hazard Models for Entry into Marriage
Nonlinear Discrete-time Hazard Models for Entry into MarriageNonlinear Discrete-time Hazard Models for Entry into Marriage
Nonlinear Discrete-time Hazard Models for Entry into Marriagehtstatistics
 
BradleyTerry2: Flexible Models for Paired Comparisons
BradleyTerry2: Flexible Models for Paired ComparisonsBradleyTerry2: Flexible Models for Paired Comparisons
BradleyTerry2: Flexible Models for Paired Comparisonshtstatistics
 

More from htstatistics (12)

Sample slides from "Programming with R" course
Sample slides from "Programming with R" courseSample slides from "Programming with R" course
Sample slides from "Programming with R" course
 
Sample slides from "Getting Started with R" course
Sample slides from "Getting Started with R" courseSample slides from "Getting Started with R" course
Sample slides from "Getting Started with R" course
 
Generalized Bradley-Terry Modelling of Football Results
Generalized Bradley-Terry Modelling of Football ResultsGeneralized Bradley-Terry Modelling of Football Results
Generalized Bradley-Terry Modelling of Football Results
 
From L to N: Nonlinear Predictors in Generalized Models
From L to N: Nonlinear Predictors in Generalized ModelsFrom L to N: Nonlinear Predictors in Generalized Models
From L to N: Nonlinear Predictors in Generalized Models
 
Modelling the Diluting Effect of Social Mobility on Health Inequality
Modelling the Diluting Effect of Social Mobility on Health InequalityModelling the Diluting Effect of Social Mobility on Health Inequality
Modelling the Diluting Effect of Social Mobility on Health Inequality
 
Turner user2012
Turner user2012Turner user2012
Turner user2012
 
Detecting Drug Effects in the Brain
Detecting Drug Effects in the BrainDetecting Drug Effects in the Brain
Detecting Drug Effects in the Brain
 
Clustering Microarray Data
Clustering Microarray DataClustering Microarray Data
Clustering Microarray Data
 
Multiplicative Interaction Models in R
Multiplicative Interaction Models in RMultiplicative Interaction Models in R
Multiplicative Interaction Models in R
 
gnm: a Package for Generalized Nonlinear Models
gnm: a Package for Generalized Nonlinear Modelsgnm: a Package for Generalized Nonlinear Models
gnm: a Package for Generalized Nonlinear Models
 
Nonlinear Discrete-time Hazard Models for Entry into Marriage
Nonlinear Discrete-time Hazard Models for Entry into MarriageNonlinear Discrete-time Hazard Models for Entry into Marriage
Nonlinear Discrete-time Hazard Models for Entry into Marriage
 
BradleyTerry2: Flexible Models for Paired Comparisons
BradleyTerry2: Flexible Models for Paired ComparisonsBradleyTerry2: Flexible Models for Paired Comparisons
BradleyTerry2: Flexible Models for Paired Comparisons
 

Recently uploaded

做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
axoqas
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
jerlynmaetalle
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
John Andrews
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
balafet
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
slg6lamcq
 
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
AnirbanRoy608946
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Subhajit Sahu
 
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
mzpolocfi
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
u86oixdj
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
Roger Valdez
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
dwreak4tg
 
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdfUnleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Enterprise Wired
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
axoqas
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Subhajit Sahu
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
AbhimanyuSinha9
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
u86oixdj
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
v3tuleee
 

Recently uploaded (20)

做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
 
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
 
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
 
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdfUnleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
 

Generalized Nonlinear Models in R

  • 1. Generalized Nonlinear Models in R Heather Turner1,2 , David Firth2 and Ioannis Kosmidis3 1 Independent consultant 2 University of Warwick, UK 3 UCL, UK Turner, Firth & Kosmidis GNM in R ERCIM 2013 1 / 30
  • 2. Generalized Linear Models A GLM is made up of a linear predictor η = β0 + β1x1 + ... + βpxp and two functions a link function that describes how the mean, E(Y ) = µ, depends on the linear predictor g(µ) = η a variance function that describes how the variance, V ar(Y ) depends on the mean V ar(Y ) = φV (µ) where the dispersion parameter φ is a constant Turner, Firth & Kosmidis GNM in R ERCIM 2013 2 / 30
  • 3. Generalized Nonlinear Models A generalized nonlinear model (GNM) is the same as a GLM except that we have g(µ) = η(x; β) where η(x; β) is nonlinear in the parameters β. Equivalently an extension of nonlinear least squares model, where the variance of Y is allowed to depend on the mean. Using a nonlinear predictor can produce a more parsimonious and interpretable model. Turner, Firth & Kosmidis GNM in R ERCIM 2013 3 / 30
  • 4. Example: Mental Health Status A study of 1660 children from Manhattan recorded their mental impairment and parents’ socioeconomic status (Agresti, 2002) MHS SES FEDCBA well mild moderate impaired Turner, Firth & Kosmidis GNM in R ERCIM 2013 4 / 30
  • 5. Independence A simple analysis of these data might be to test for independence of MHS and SES using a chi-squared test. This is equivalent to testing the goodness-of-fit of the independence model log(µrc) = αr + βc Such a test compares the independence model to the saturated model log(µrc) = αr + βc + γrc which may be over-complex. Turner, Firth & Kosmidis GNM in R ERCIM 2013 5 / 30
  • 6. Row-column Association One intermediate model is the Row-Column association model: log(µrc) = αr + βc + φrψc (Goodman, 1979), an example of a multiplicative interaction model. For the Mental Health data: ## Analysis of Deviance Table ## ## Model 1: Freq ~ SES + MHS ## Model 2: Freq ~ SES + MHS + Mult(SES , MHS) ## Model 3: Freq ~ SES + MHS + SES:MHS ## Resid. Df Resid. Dev Df Deviance Pr(>Chi) ## 1 15 47.4 ## 2 8 3.6 7 43.8 2.3e-07 ## 3 0 0.0 8 3.6 0.89 Turner, Firth & Kosmidis GNM in R ERCIM 2013 6 / 30
  • 7. Parameterisation The independence model was defined earlier in an over-parameterised form: log(µrc) = αr + βc = (αr + 1) + (βc − 1) = α∗ r + β∗ c Identifiability constraints may be imposed to fix a one-to-one mapping between parameter values and distributions to enable interpretation of parameters Turner, Firth & Kosmidis GNM in R ERCIM 2013 7 / 30
  • 8. Standard Implementation The standard approach of all major statistical software packages is to apply the identifiability constraints in the construction of the model g(µ) = Xβ so that rank(X) is equal to the number of parameters p. Then the inverse in the score equations of the IWLS algorithm β(r+1) = XT W (r) X −1 XT W (r) z(r) exists. Turner, Firth & Kosmidis GNM in R ERCIM 2013 8 / 30
  • 9. Alternative Implementation The gnm package for R works with over-parameterised models, where rank(X) < p, and uses the generalised inverse in the IWLS updates: β(r+1) = XT W (r) X − XT W (r) z(r) This approach is more useful for GNMs, where it is much harder to define standard rules for specifying identifiability constraints. Rather, identifiability constraints can be applied post-fitting for inference and interpretation. Turner, Firth & Kosmidis GNM in R ERCIM 2013 9 / 30
  • 10. Estimation of GNMs GNMs present further technical difficulties vs. GLMs automatic generation of starting values is hard the likelihood may have multiple optima The default approach of the gnm function in package gnm is to: generate starting values randomly for nonlinear parameters and using a GLM fit for linear parameters use one-parameter-at-a-time Newton method to update nonlinear parameters use the generalized IWLS to update all parameters Consequently, the parameterisation returned is random. Turner, Firth & Kosmidis GNM in R ERCIM 2013 10 / 30
  • 11. Parameterisation of RC Model The RC model is invariant to changes in scale or location of the interaction parameters: log(µrc) = αr + βc + φrψc = αr + βc + (2φr)(0.5ψc) = αr + (βc − ψc) + (φr + 1)(ψc) One way to constrain these parameters is as follows φ∗ r = φr − r wrφr r wr r wr φr − r wrφr r wr where wr is the row probability, say, so that r wrφ∗ r = 0 r wr(φ∗ r)2 = 1 Turner, Firth & Kosmidis GNM in R ERCIM 2013 11 / 30
  • 12. Row and Column Scores These scores and their standard errors can be obtained via the getContrasts function in the gnm package ## Estimate Std. Error ## Mult(., MHS).SESA 1.11 0.30 ## Mult(., MHS).SESB 1.12 0.31 ## Mult(., MHS).SESC 0.37 0.32 ## Mult(., MHS).SESD -0.03 0.27 ## Mult(., MHS).SESE -1.01 0.31 ## Mult(., MHS).SESF -1.82 0.28 ## Estimate Std. Error ## Mult(SES , .).MHSwell 1.68 0.19 ## Mult(SES , .).MHSmild 0.14 0.20 ## Mult(SES , .). MHSmoderate -0.14 0.28 ## Mult(SES , .). MHSimpaired -1.41 0.17 Turner, Firth & Kosmidis GNM in R ERCIM 2013 12 / 30
  • 13. Stereotype Model The stereotype model (Anderson, 1984) is suitable for ordered categorical data. It is a special case of the multinomial logistic model: pr(yi = c|xi) = exp(β0c + βT c xi) r exp(β0r + βT r xi) in which only the scale of the relationship with the covariates changes between categories: pr(yi = c|xi) = exp(β0c + γcβT xi) r exp(β0r + γrβT xi) Turner, Firth & Kosmidis GNM in R ERCIM 2013 13 / 30
  • 14. Poisson Trick The stereotype model can be fitted as a GNM by re-expressing the categorical data as category counts Yi = (Yi1, . . . , Yik). Assuming a Poisson distribution for Yic, the joint distribution of Yi is Multinomial(Ni, pi1, . . . , pik) conditional on the total count Ni. The expected counts are then µic = Nipic and the parameters of the sterotype model can be estimated through fitting log µic = log(Ni) + log(pic) = αi + β0c + γc r βrxir where the “nuisance” parameters αi ensure that the multinomial denominators are reproduced exactly, as required. Turner, Firth & Kosmidis GNM in R ERCIM 2013 14 / 30
  • 15. Augmented Least Squares A disadvantage of using the Poisson trick is that the number of nuisance parameters can be large, making computation slow. The algorithm can be adapted using augmented least squares. For an ordinary least squares model, (y|X)T (y|X) −1 = yT y yT X XT y XT X −1 = A11 A12 A21 A22 where A11, A12 and A22 are functions of yT y, XT y and XT X. Then it can be shown that ˆβ = (XT X)−1 XT y = − A21 A11 requiring only the first row (column) of the inverse to be found. Turner, Firth & Kosmidis GNM in R ERCIM 2013 15 / 30
  • 16. Application to Nuisance Parameters I The same approach can be applied to the IWLS algorithm, letting ˜X = W 1 2 (z|X) Now let ˜X = (U|V ) where V is the part of the design matrix corresponding to the nuisance factor. U is an nk × p matrix where n is the number of nuisance parameters and k is the number of categories and p is the number of model parameters, typically with n >> p. V is an nk × n matrix of dummy variables identifying each individual. Turner, Firth & Kosmidis GNM in R ERCIM 2013 16 / 30
  • 17. Application to Nuisance Parameters II Then ( ˜X T ˜X)− = UT U UT V V T U V T V − = B11 B12 B21 B22 Again, only the first row (column) of this generalised inverse is required to estimate ˆβ, so we are only interested in B11 and B12. B11 = (UT U − UT V (V T V )−1 V T U)− B12 = −(V T V )−1 V T UB11 Turner, Firth & Kosmidis GNM in R ERCIM 2013 17 / 30
  • 18. Elimination of the Nuisance Factor UT U is p × p, therefore not expensive to compute. V T V and V T U can be computed without constructing the large nk × n matrix V , due to the stucture of V V T V is diagonal and the non-zero elements can be computed directly V T U is equivalent to aggregating the rows of U by levels of the nuisance factor Thus we only need to construct the U matrix, saving memory and reducing the computational burden. This approach is invoked using the eliminate argument to gnm. Turner, Firth & Kosmidis GNM in R ERCIM 2013 18 / 30
  • 19. Example: Back Pain Data For 101 patients, 3 prognostic variables were recorded at baseline, then after 3 weeks the level of back pain was recorded (Anderson, 1984) These data can be converted to counts using the expandCategorical function, giving for the first record: ## x1 x2 x3 pain count id ## 1 1 1 1 worse 0 1 ## 1.1 1 1 1 same 1 1 ## 1.2 1 1 1 slight. improvement 0 1 ## 1.3 1 1 1 moderate.improvement 0 1 ## 1.4 1 1 1 marked. improvement 0 1 ## 1.5 1 1 1 complete.relief 0 1 Turner, Firth & Kosmidis GNM in R ERCIM 2013 19 / 30
  • 20. Back Pain Model The expanded data set has only 606 records and the total number of parameters is only 115 (9 nonlinear). So the model is quick to fit: system.time({ m <- gnm(count ~ id + pain + Mult(pain, x1 + x2 + x3), family = poisson, data = backPainLong, verbose = FALSE) })[3] ## elapsed ## 0.268 However, eliminating the linear parameters reduces the run time by more than two thirds, showing the potential of this technique. system.time(m2 <- update(m, eliminate = id))[3] ## elapsed ## 0.088 Turner, Firth & Kosmidis GNM in R ERCIM 2013 20 / 30
  • 21. Rasch Models Rasch models are used in Item Response Theory to model the binary responses of subjects over a set of items. The simplest one parameter logistic (1PL) model has the form log πis 1 − πis = αi + γs The one-dimensional Rasch model extends the 1PL as follows: log πis 1 − πis = αi + βiγs where βi measures the discrimination of item i: the larger βi the steeper the item-response function that maps γs to πis. Turner, Firth & Kosmidis GNM in R ERCIM 2013 21 / 30
  • 22. Example: US House of Representatives Votes on 20 roll calls selected by Americans for Democratic Action (ADA) BankruptcyOverhaul.Yes ErgonomicsRuleDisapproval.No IncomeTaxReduction.No MarriageTaxReduction.Yes EstateTaxRelief.Yes FetalProtection.No SchoolVouchers.No TaxCutReconciliationBill.No CampaignFinanceReform.No FlagDesecration.No FaithBasedInitiative.Yes ChinaNormalizedTradeRelations.Yes ANWRDrillingBan.Yes PatientsRightsHMOLiability.No PatientsBillOfRights.No DomesticPartnerBenefits.No USMilitaryPersonnelOverseasAbortions.Yes AntiTerrorismAuthority.No EconomicStimulus.No TradePromotionAuthorityFastTrack.No Vote For Against Party Democrat Republican Other Turner, Firth & Kosmidis GNM in R ERCIM 2013 22 / 30
  • 23. Complete Separation For representatives that always vote “For” or “Against” the ASA position, maximum likelihood will produce infinite γs estimates, so that the fitted probabilities are 0 or 1. Two possible remedies: 1. Add δ to yis and 2δ to the totals nis hard to quantify effect of adjustment different δ give different results 2. Bias reduction (Firth, 1993; Kosmidis and Firth, 2009) requires identifiable parameterization Turner, Firth & Kosmidis GNM in R ERCIM 2013 23 / 30
  • 24. Bias Reduction in the 1D Rasch Model ML estimates are obtained by solving the score equations, which for the one dimensional Rasch model with θ = (αT , βT , γT )T are Ut = I i=1 S s=1 (yis − nisπis)zist = 0 where zist = ∂ηis/∂θt. The bias reduction method of Kosmidis and Firth (2009) works by adjusting the scores, in this case giving U∗ t = I i=1 S s=1 yis + 1 2 his + cisvis − (nis + his)πis zist = 0 where vis, his and cis are depend on the model parameters. Turner, Firth & Kosmidis GNM in R ERCIM 2013 24 / 30
  • 25. Identifiability in the 1D Rasch Model In order to identify the parameters in 1D Rasch model log πis 1 − πis = αi + βiγs the scale of the βi and the location of the γs must be constrained. This can be achieved by fixing one of the βi and one of the γs. Here we will select one βi and one γs at random and fix them to their ML estimates based on data that have been δ adjusted. Turner, Firth & Kosmidis GNM in R ERCIM 2013 25 / 30
  • 26. Bias Reduction Algorithm The bias adjustment suggests the following iterative scheme 1. Evaluate bias adjusted responses and totals given θ(i) 2. Fit the 1D Rasch model to the adjusted data using ML Unfortunately the cis quantities are unbounded and can produce adjusted yis < 0 or > nis redefine yis and nis to avoid this Adding a further iteration loop to IWLS adds significantly to the computation time, therefore good starting values are important if ML estimates finite use these else use ML estimates found by δ adjustment Turner, Firth & Kosmidis GNM in R ERCIM 2013 26 / 30
  • 27. Liberality of US Representatives All the ˆβi are < 0, hence smaller ˆγs implies larger probability of voting for the ADA position, i.e. more liberal. Turner, Firth & Kosmidis GNM in R ERCIM 2013 27 / 30
  • 28. Comparison Intervals Adding intervals based on quasi-standard errors that are invariant to the parameter constraints (Firth and de Menezes, 2004): Turner, Firth & Kosmidis GNM in R ERCIM 2013 28 / 30
  • 29. Summary Working with over-parameterized models enables a general framework to be implemented for GNMs Some of the computational methods from GLMs can be applied directly to GNMs. . . . . . whilst others require much more work! Further examples can be found in the help files and manual accompanying the gnm package which is available on CRAN. Turner, Firth & Kosmidis GNM in R ERCIM 2013 29 / 30
  • 30. References Agresti, A. (2002). Categorical Data Analysis (2nd ed.). New York: Wiley. Anderson, J. A. (1984). Regression and Ordered Categorical Variables. J. R. Statist. Soc. B 46(1), 1–30. Firth, D. (1993). Bias reduction of maximum likelihood estimates. Biometrika 80(1), 27–38. Firth, D. and R. X. de Menezes (2004). Quasi-variances. Biometrika 91, 65–80. Goodman, L. A. (1979). Simple models for the analysis of association in cross-classifications having ordered categories. J. Amer. Statist. Assoc. 74, 537–552. Kosmidis, I. and D. Firth (2009). Bias reduction in exponential family nonlinear models. Biometrika 96(4), 793–804. Turner, Firth & Kosmidis GNM in R ERCIM 2013 30 / 30