Skip to content
Prev 15283 / 20628 Next

Repeated Observations Linear Mixed Model with Outside-Group Spatial Correlation

Thanks for the quick response.

This is a subset. Full dataset is 12,266 observations across 530 groups (or
Bikeshare stations).

for
model_spatial.gau <- update(model_spatial, correlation = corGaus(form = ~
latitude +longitude ), method = "ML")
and
model_spatial.gau <- update(model_spatial, correlation = corGaus(form = ~
latitude +longitude| id ), method = "ML")
the error is "cannot have zero distances in "corSpatial" which I assume is
due to the repeated observations having the same exact lat and lon;
therefore zero distance

Moreover, when I do anything with '| id' I think the model only accounts
for 'within-group' correlations, not across stations
On Tue, Mar 21, 2017 at 4:12 PM, Ben Bolker <bbolker at gmail.com> wrote: