Skip to content
Prev 17252 / 20628 Next

Cannot have zero distances in "corSpatial"

Dear Maia,

Add a correlation structure with nlme won't solve your problem. Is applies
the correlation structure on the residuals **within** each finest group as
defined by the random effects. The residuals **between** random effects
group are assumed to be independent. The spatial structure is your design
is probably defined by site and plot so this won't work.

Have a look at the INLA or inlabru packages. They can model spatially
correlated random effects. See
https://www.muscardinus.be/2018/07/inlabru-bru/ for some examples.

Best regards,

ir. Thierry Onkelinx
Statisticus / Statistician

Vlaamse Overheid / Government of Flanders
INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND
FOREST
Team Biometrie & Kwaliteitszorg / Team Biometrics & Quality Assurance
thierry.onkelinx at inbo.be
Havenlaan 88 bus 73, 1000 Brussel
www.inbo.be

///////////////////////////////////////////////////////////////////////////////////////////
To call in the statistician after the experiment is done may be no more
than asking him to perform a post-mortem examination: he may be able to say
what the experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does not
ensure that a reasonable answer can be extracted from a given body of data.
~ John Tukey
///////////////////////////////////////////////////////////////////////////////////////////

<https://www.inbo.be>


Op do 6 dec. 2018 om 19:33 schreef Vinicius Maia <
vinicius.a.maia at hotmail.com>:

  
  
Message-ID: <CAJuCY5zGpZPp-RmyAi_pY6N410AQe4hGfpr-Yom2_S3cj=04Tg@mail.gmail.com>
In-Reply-To: <DM3PR14MB0540FDA33994547C66C6BFAABEA90@DM3PR14MB0540.namprd14.prod.outlook.com>