cquad-package: Conditional Maximum Likelihood for Quadratic Exponential...

Description Details Author(s) References Examples

Description

Estimation, based on conditional maximum likelihood, of the quadratic exponential model proposed by Bartolucci & Nigro (2010) and of a simplified and a modified version of this model. The quadratic exponential model is suitable for the analysis of binary longitudinal data when state dependence (further to the effect of the covariates and a time-fixed individual intercept) has to be taken into account. Therefore, this is an alternative to the dynamic logit model having the advantage of easily allowing conditional inference in order to eliminate the individual intercepts and then getting consistent estimates of the parameters of main interest (for the covariates and the lagged response). The simplified version of this model does not distinguish, as the original model does, between the last time occasion and the previous occasions. The modified version formulates in a different way the interaction terms and it may be used to test in a easy way state dependence as shown in Bartolucci, Nigro & Pigini (2018). The package also includes estimation of the dynamic logit model by a pseudo conditional estimator based on the quadratic exponential model, as proposed by Bartolucci & Nigro (2012).

Details

Package: cquad
Type: Package
Version: 2.0
Date: 2019-03-26
License: GPL (>= 2)

Author(s)

Francesco Bartolucci (University of Perugia, IT), Claudia Pigini (University of Perugia, IT), Francesco Valentini (University of Ancona "Politecnica delle Marche")

Maintainer: Francesco Bartolucci <francesco.bartolucci@unipg.it>

References

Bartolucci, F. and Nigro, V. (2010), A dynamic model for binary panel data with unobserved heterogeneity admitting a root-n consistent conditional estimator, Econometrica, 78, 719-733.

Bartolucci, F. and Nigro, V. (2012). Pseudo conditional maximum likelihood estimation of the dynamic logit model for binary panel data, Journal of Econometrics, 170, 102-116.

Bartolucci, F. and Pigini, C. (2017). cquad: An R and Stata package for conditional maximum likelihood estimation of dynamic binary panel data models, Journal of Statistical Software, 78, 1-26, doi:10.18637/jss.v078.i07.

Bartolucci, F., Nigro, V., & Pigini, C. (2018). Testing for state dependence in binary panel data with individual covariates by a modified quadratic exponential model. Econometric Reviews, 37(1), 61-88.

Cox, D. R. (1972), The Analysis of multivariate binary data, Applied Statistics, 21, 113-120.

Examples

1
2
3
4
5
6
7
# example based on simulated data
data(data_sim)
data_sim = data_sim[1:500,]   # to speed up the example, remove otherwise
# static model
out1 = cquad(y~X1+X2,data_sim)
# dynamic model
out2 = cquad(y~X1+X2,data_sim,dyn=TRUE)

Example output

Loading required package: MASS
Loading required package: plm
Loading required package: Formula
Balanced panel data
 |--------------|--------------|--------------|
 |   iteration  |      lk      |    lk-lko    |
 |--------------|--------------|--------------|
 |            1 |     -136.698 |          Inf | 
 |            2 |     -99.8641 |      36.8336 | 
 |            3 |     -98.5722 |      1.29189 | 
 |            4 |     -98.5504 |    0.0217807 | 
 |            5 |     -98.5504 |   9.0852e-06 | 
 |            6 |     -98.5504 |  1.71951e-12 | 
 |--------------|--------------|--------------|
Balanced panel data
 |--------------|--------------|--------------|
 |   iteration  |      lk      |    lk-lko    |
 |--------------|--------------|--------------|
 |            1 |     -87.3636 |          Inf | 
 |            2 |     -51.7419 |      35.6217 | 
 |            3 |     -48.5148 |      3.22715 | 
 |            4 |     -48.2432 |     0.271592 | 
 |            5 |     -48.2399 |   0.00332452 | 
 |            6 |     -48.2399 |  6.37843e-07 | 
 |--------------|--------------|--------------|

cquad documentation built on Oct. 23, 2020, 7:55 p.m.