search for: lagsarlm

Displaying 12 results from an estimated 12 matches for "lagsarlm".

2003 Nov 27
1
lagsarlm - using mixed explanatory variables (spdep package)
Hello I'm very new to R (which is excellent), so apologies if this has already been raised. In the spdep package, I'm trying to undertake an autoregressive mixed model using the lagsarlm function. This is working fine, but there does not appear to be a method of including an explanatory variable without it automatically being included as a lagged term. I'm after something along the lines of y = rho.W.y + x1 + x2 + lag(x2) but am only able to output y = rho.W.y + x1 + x2 +...
2005 Feb 11
3
How to solve error : "cannot allocate vector of size 1208235 Kb"
Howdy R gurus ! I am newbie to R I use R 2.0.1 in Windows XP. When I run R I got the follwoing memory error. My physical memory size is 3 Gb. My R got the memory problem when it reached to about 2 Gb. Thanks in advance, > library(spdep) > sfr.lagsarlm <- lagsarlm(sfr.data$Bldgsqft ~ sfr.data$Ncounty + sfr.data$Nugb + sfr.data$Ngroup, data=sfr.data, listw=sfr.listw, method="eigen") Error: cannot allocate vector of size 1208235 Kb > memory.size(max=FALSE) [1] 17862584 > memory.limit(size=NA) [1] 3145728000 > -- Kum-Hoe H...
2010 Dec 09
1
Using Lagsarlm
I'm trying to use the spdep package to calculate this: y = rho W y + e I don't want to use explanatory variables, just the lag from the dependent variable. How would I code this?
2011 Feb 04
1
Error in solve.default(inf, tol = tol.solve) :
Hello, I'm trying to run a lagsarlm (maximum likelihood estimation of a spatial lag model) in the spdep library ; but R gives following error message: Error in solve.default(inf, tol = tol.solve) : system is computationally singular: reciprocal condition number = 4.20137e-12 I get the same message when I try to run de lagsa...
2004 Nov 18
1
Method dispatch S3/S4 through optimize()
...tMethod() rather than by name before the setMethod(). When called from within functions passed as the f= argument to optimize, the S3 generics for det() and chol() get picked up, not the S4 generics for the S4 SparseM classes. This looks for instance like (from example(boston)): > gp2 <- lagsarlm(log(CMEDV) ~ CRIM + ZN + INDUS + CHAS + I(NOX^2) + I(RM^2) + + AGE + log(DIS) + log(RAD) + TAX + PTRATIO + B + log(LSTAT), + data=boston.c, nb2listw(boston.soi), method="SparseM") matrix.csr Error in chol(tmp1) : non-numeric argument to chol (this is the error message in chol.R in ba...
2011 May 04
1
Instrumental variable quantile estimation of spatial autoregressive models
...data<-read.table("DataSample.txt",header=TRUE, sep="") attach(data) matrix<-read.gwt2nb("matrixsample.gwt" ,region.id=no_Trans) matrix.listw<-nb2listw(matrix) OLS model OLS<-lm(lnprice~surface+d2007+LUX+tsect_ci, data=data) summary(OLS) SAR model SAR<-lagsarlm(lnprice~surface+d2007+LUX+tsect_ci, data=data, listw = matrix.listw) summary(SAR) I hope that this information is sufficient and will help you to help me :) Many thanks in advance, Marie-Line Glaesener PhD student Unit? de Recherche IPSE (Identit?s. Politiques, Soci?t?s, Espaces) Laboratoire de...
2012 Jul 24
1
unable to run spatial lag and error models on large data
...ched total allocation of 3004Mb: see help(memory.size) 3: In t.default(object) :   Reached total allocation of 3004Mb: see help(memory.size) 4: In t.default(object) :   Reached total allocation of 3004Mb: see help(memory.size) The code for the lag model is: > fmtypecurrentcombinedlag <-lagsarlm(fmtypecurrentcombined, data = spssnew, lw_test1.csv, na.action=na.fail, type="lag", method="eigen", quiet=TRUE, zero.policy=TRUE, interval = NULL, tol.solve=1.0e-20) When I am able to read the data file using filehash package.  However, I still get the following error mess...
2003 Aug 07
0
spdep error message
...ulted in an error: Error in spwdet(sparseweights, rho = rho, debug = debug) : Suspicious allocation of memory in sparse functions ...bailing out! Save workspace and quit R! Any help on how to incorporate distance measures into the spatial weights matrix for the errorsarlm/lagsarlm spatial regression commands would be greatly appreciated! Hopefully I haven't overlooked something very obvious. Regards, Robin Naidoo Department of Rural Economy University of Alberta Canada
2009 Aug 31
1
R2 for SAR and validation
Hi everyone, How can i obtain R2 for SAR model? and how can i validate the results, can i use the coefficients directly in a simple formula like y=b0+b1*x1+... or do i have to use the complicated formula for SAR (the one with the weight matrix and rho and...)?   Thanks for any help!  [[alternative HTML version deleted]]
2006 Jul 13
0
SAR with count data
I would like to undertake a Spatial autoregression with count data, how can I specify a negative binomial distribution? I am using the lagsarlm function in the spdep package. Thanks Julie -- View this message in context: http://www.nabble.com/SAR-with-count-data-tf1936174.html#a5304944 Sent from the R help forum at Nabble.com.
2012 Sep 27
0
error while estimating spatial Durbin (mixed) model
...nd error,really hope your help ,thank you! #??gal library(spdep) w<- read.gal("E:/splm/zj.GAL",override.id=TRUE) ww<-nb2listw(w,zero.policy=TRUE) #???? library(foreign) mydata<-read.dta("E:/splm/merge.dta") #?? library(splm) fm<-lrincome~ishare+mgdp+tinput ssss<-lagsarlm(fm, data = mydata,listw =ww,zero.policy=TRUE,type="mixed") summary(ssss) error:Input data and weights have different dimensions -- View this message in context: http://r.789695.n4.nabble.com/error-while-estimating-spatial-Durbin-mixed-model-tp4644375.html Sent from the R help mailing...
2010 Dec 11
0
is there a packge or code to generate markov chains in R
...le Loading doBy and coin Packages (Adam Carr) 10. Help..Neural Network (sadanandan) 11. Re: subset with two factors (Martin Spindler) 12. Re: ReadWrite.xls problem (Hans-Peter Suter) 13. Re: New Installs, Same Trouble Loading doBy and coin Packages (Peter Ehlers) 14. Re: Using Lagsarlm (Roger Bivand) 15. Re: Projecting data on a world map using long/lat (Michael Sumner) 16. Adding numbers in Outputs (Amelia Vettori) 17. Re: Compare one level of a factor with *all* other non-missing levels (Peter Ehlers) 18. Re: Sweave: Setting options with SweaveOpts{} when using...