Hi Roger,
Then the dak_test_data is a SpatialPolygonsDataFrame, for which there is
no nrow() method, leading to problems. Please get around this by saying
newdata=as(dak_test_data, "data.frame") to coerce it to data frame. I'll
look at providing dim methods for Spatial*DataFrame objects other
Hi Roger,
Thanks for the response. Unfortunately, I'm still getting the same error
running predict.sarlm ("Error in if (nrow(newdata) !=
length(listw$neighbours)) stop("mismatch between newdata and spatial
weights") : argument is of length zero"). Here's what I've done since.
Thanks for prov
I am encountering difficulties using predict.sarlm to make predictions for
a SAR lag model generated using lagsarlm and a new dataset. I used the
following code to do so:
dak_test.10nn.predict <- predict.sarlm(reg_vars_reduced2.10nn.lag, newdata
= "dak_test_data", listw = dak_test.10nn.listw,
On May 22 2008, Roger Bivand wrote:
Does that mean that you get a sensible lambda for your model now - the
line search leads somewhere other than a boundary of the interval?
I apologize for being unclear. I actually upgraded R and updated
packages, then ran errorsarlm with method="Matrix" and
On May 21 2008, Roger Bivand wrote:
On Wed, 21 May 2008, [EMAIL PROTECTED] wrote:
Thanks. I upgraded and updated everything and got a better result.
Does that mean that you get a sensible lambda for your model now - the
line search leads somewhere other than a boundary of the interval?
I
Thanks. I upgraded and updated everything and got a better result. However,
I'm not 100% sure that I'm using the correct command to accomplish what I
need to accomplish. My OLS model has significant spatial autocorrelation
(RLMlag is not significant and RLMerror is) and heteroscedasticity. I had
Thanks for your response. Here's what I have now.
On May 20 2008, Roger Bivand wrote:
A bit more context would help. The output of sessionInfo() at least (R and
package versions may matter), plus the preceding code, including the
definition of rams_dak.dnear3k.listw - is it row-standardised
Hi,
I'm working on Windows with 2GB RAM and am trying to run the errorsarlm
with 32 predictor variables and 10,071 records. I created my listw object
using the dnearneigh function with an upper distance limit of 3000m. I used
the following code with method=Matrix to deal with memory limitation