The R Journal Volume 2/2, December 2010 - R Project

12 downloads 983 Views 3MB Size Report
hglm: A Package for Fitting Hierarchical Generalized Linear Models . . . . . . . . . . . . . . 20 .... there are non-obv
The

Journal Volume 2/2, December 2010

A peer-reviewed, open-access publication of the R Foundation for Statistical Computing

Contents Editorial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3

Contributed Research Articles Solving Differential Equations in R . . . . . . . . . . . . . . . . . . . . . . . . . . Source References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . hglm: A Package for Fitting Hierarchical Generalized Linear Models . . . . . dclone: ),

1 http://www.qtlmas2009.wur.nl/UK/) -0.8257 0.4341 Pr(>|t|) (Intercept) 0.018429 extractCucumber 0.000625 I(seed == "O73")TRUE 0.814264 extractCucumber:I(seed=="O73") 0.086343 ---

2005), credit risk modeling (Alam and Carling, 2008), count )

Lele et al. (2010) introduced diagnostic measures for checking the convergence of the )

The high r.hat and the variable lambda.max and fit statistic values that are not converging to zero indicate possible problems with identifiability.

> dcdiag(nnmod) 1 2 3 4 5 6

n.clones lambda.max ms.error r.squared r.hat 1 0.0312 0.508 0.02985 1.18 10 0.0364 0.275 0.00355 2.06 20 1.2617 1.111 0.13714 50.15 30 0.1530 0.753 0.10267 12.91 40 1.7972 0.232 0.03770 92.87 50 1.8634 0.241 0.04003 15.72

> vars sigma^2 + tau^2

Inference and prediction We can explore the results with methods defined for "mcmc.list" objects (many such methods are available in the coda package, e.g. summary, plot, etc.). The dclone package adds a few more methods: coef returns the mean of the posterior, dcsd the ) cat("glmmPois model\n\n") printCoefmat(x, ...) cat("\n") invisible(x) } predict.glmmPois