nbpml
is an estimation method for gravity models
belonging to generalized linear models. It is estimated via glm.nb
using the negative binomial distribution and a log-link.
For similar functions, utilizing the multiplicative form via the log-link,
but different distributions, see nbpml
, gpml
,
and nls
.
gpml
estimation can be used for both, cross-sectional as well as
panel data, but its up to the user to ensure that the functions can be applied
to panel data.
Depending on the panel dataset and the variables -
specifically the type of fixed effects -
included in the model, it may easily occur that the model is not computable.
Also, note that by including bilateral fixed effects such as country-pair
effects, the coefficients of time-invariant observables such as distance
can no longer be estimated.
Depending on the specific model, the code of the
respective function may has to be changed in order to exclude the distance
variable from the estimation.
At the very least, the user should take special
care with respect to the meaning of the estimated coefficients and variances
as well as the decision about which effects to include in the estimation.
When using panel data, the parameter and variance estimation of the models
may have to be changed accordingly.
For a comprehensive overview of gravity models for panel data
see Egger2003;textualgravity, Gomez-Herrera2013;textualgravity and
Head2010;textualgravity.