[ADMB Users] asreml ar(1) x ar(1) spatial model

dave fournier davef at otter-rsch.com
Thu Nov 24 13:48:06 PST 2011


There was some uninformed mumbling on the R list about the non-existence of
free software to do this kind of spatial modeling. Kaspar has already posted
an ADMB example for a Poisson spatial model.  I took Kaspar's code and 
modified it
slightly to work for a rectangular rather than square grid, included the 
calcs necessary for
a sparse tridiagonal matrix and optimizied it a bit.   I modified the 
objective function from
Poisson to a linear model and fit it to the wheat example.  I have 
included versions for
both ML and REML estimation.   It should be straigthforward to modify 
this code to
more complicated models such as negative binomial with various kind of 
covariates
and zero inflation etc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asreml.zip
Type: application/zip
Size: 6906 bytes
Desc: not available
URL: <http://lists.admb-project.org/pipermail/users/attachments/20111124/448923c8/attachment.zip>


More information about the Users mailing list