You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
goodness of fit measures: Stata uses chi2 wald statistic, and Hausman’s specification test
testing of linear hypothesis: need generic Wald test (as complement to f_test and t_test)
Stata has lincom linear hypothesis tests, and test Wald tests separately, and equivalents for non-linear hypothesis (I don't know yet what's the difference)
margins: Stata also has margins, which we have in discrete but not yet in genmod
I don't know what residual diagnostics, influence and outlier measures are available.
genmod.GLM has different kinds of residuals, but no supporting influence and outlier measures and tests yet.
I added some tests for the very basic equivalences between genmod and GEE (OLS, logistic, and Poisson regression with independence covariances). The standard errors should not agree since GEE uses the so-called robust estimates based on the sandwich estimator and observed within-cluster dependence.
Starting in SAS 9.2, deletion diagnostics and plots are provided for GEE models to assess the effects of deleting entire clusters.
The Stata manual mentions jacknife standard errors (I didn't check the description yet), but from the SAS description it looks like we should focus on leave one group out for the diagnostics.
A general comment, after reading through the description of GEE in Stata:
Is GEE fully parametric, or When is GEE fully parametric?
Stata reports in some cases the deviance in the summary printout, and uses by default the standard standard errors and the robust sandwich errors only as an option.
Given that we use the family we have the assumption of the likelihood functions.
However, I thought the analog to GEE is the generalized method of moments where we only assume that some moment conditions (estimating equations) hold, and don't require a full likelihood. And we use the robust sandwich covariance because we don't have a fully specified and correctly specified likelihood.
Possible (guessing):
Since in the exponential family we get an expression for the mean equation, we are matching the mean/expectation in the estimation without requiring the full parametric assumption on the likelihood. (Similar to OLS versus normal distribution for linear model). Whether we have the fully parametric model depends on the interpretation (using likelihood ratio test for example) and on the adjustments to the variance estimator.
on robustness to misspecification: The vce(robust) option of xtgee, on the other hand, requires that the model correctly specify the mean and the link function when the noncanonical link is used. (Stata)
with generalized residuals:
Pardo, M. C., and R. Alonso. 2012. “A Generalized Q–Q Plot for Longitudinal Data.” Journal of Applied Statistics 39 (11): 2349–2362. doi:10.1080/02664763.2012.710896.
Activity
josef-pkt commentedon Jun 30, 2013
spec_hausmantest is in GMM in the sandbox (I don't know what's the status and how it is used for GEE)josef-pkt commentedon Jun 30, 2013
related: The stata description for GEE lists the equivalent models for special cases of GEE
http://www.stata.com/features/generalized-estimating-equations/
It also mentions where the
bseresults differ.I think this could also be useful for consistency testing across models, especially GEE with independent correlation structure and GLM.
kshedden commentedon Jul 1, 2013
I added some tests for the very basic equivalences between genmod and GEE (OLS, logistic, and Poisson regression with independence covariances). The standard errors should not agree since GEE uses the so-called robust estimates based on the sandwich estimator and observed within-cluster dependence.
kshedden commentedon Jul 2, 2013
More relevant information about GEE diagnostics:
http://support.sas.com/kb/22/630.html
josef-pkt commentedon Jul 2, 2013
From the SAS page
Starting in SAS 9.2, deletion diagnostics and plots are provided for GEE models to assess the effects of deleting entire clusters.The Stata manual mentions jacknife standard errors (I didn't check the description yet), but from the SAS description it looks like we should focus on
leave one group outfor the diagnostics.josef-pkt commentedon Jul 2, 2013
A general comment, after reading through the description of GEE in Stata:
Is GEE fully parametric, or When is GEE fully parametric?
Stata reports in some cases the deviance in the summary printout, and uses by default the standard standard errors and the robust sandwich errors only as an option.
Given that we use the family we have the assumption of the likelihood functions.
However, I thought the analog to GEE is the generalized method of moments where we only assume that some moment conditions (estimating equations) hold, and don't require a full likelihood. And we use the robust sandwich covariance because we don't have a fully specified and correctly specified likelihood.
Possible (guessing):
Since in the exponential family we get an expression for the mean equation, we are matching the mean/expectation in the estimation without requiring the full parametric assumption on the likelihood. (Similar to OLS versus normal distribution for linear model). Whether we have the fully parametric model depends on the interpretation (using likelihood ratio test for example) and on the adjustments to the variance estimator.
on robustness to misspecification:
The vce(robust) option of xtgee, on the other hand, requires that the model correctly specify the mean and the link function when the noncanonical link is used.(Stata)josef-pkt commentedon Jul 2, 2013
Here is the formula collection for the influence outlier measures for GLM and GEE
http://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_genmod_sect051.htm
josef-pkt commentedon Oct 2, 2013
Reference
QQ-plot with Pearson, Anscombe and Deviance residuals:
Sohee Oh, K.C. Carriere, Taesung Park, Model diagnostic plots for repeated measures data using the generalized estimating equations approach, Computational Statistics & Data Analysis, Volume 53, Issue 1, 15 September 2008, Pages 222-232, ISSN 0167-9473, http://dx.doi.org/10.1016/j.csda.2008.07.022.
(http://www.sciencedirect.com/science/article/pii/S0167947308003526)
with generalized residuals:
Pardo, M. C., and R. Alonso. 2012. “A Generalized Q–Q Plot for Longitudinal Data.” Journal of Applied Statistics 39 (11): 2349–2362. doi:10.1080/02664763.2012.710896.
josef-pkt commentedon Jan 4, 2023
a recent article
Crisci, Anna. “A Note on Regression Diagnostics for Generalized Estimating Equations: Empirical Study on Environmental Disclosure Determinants.” Journal of the Operational Research Society 0, no. 0 (March 24, 2022): 1–7. https://doi.org/10.1080/01605682.2022.2053310.
I didn't read anything, but has cluster leverage/hat matrix and cooks distance
and QIC(Quasilikelihood under the Independencemodel Criterion)