[R] help to use GMerrorsar () spdep

2010-08-22 Thread Francisco Silva
Hi Folks, I am trying to work with spatial logit model and I stopped my research in a Paper of Pinkse that make estimation of spatial models by GMM. I search in R communite and I find that GMerrorsar function in spdep package is used to it, but I have tryied so many times to make my model by this

[R] Spatial Logit Model

2010-05-28 Thread Francisco Silva
Hello everybody, I am trying to do a spatial logit model with the spatially autoregressive error structure - SAE. Right now, I did an implementation and i would like to check the results. Somebody knows with there is a package in R that estimates parameters to spatial logit model with SAE structur

[R] Spam of an Adjacency Matrix

2010-05-02 Thread Francisco Silva
Hi folks, I have a matrix of 3 columns and 17 lines that represents a graph or a adjacency matrix. I have also a vector of 30 elements with some of the nodes of the graph repeated. seems like: 1. matrix that represents a graph: 1 2 1 1 3 1 1 4 1 2 1 1 2 4 1 3 1 1 4 1 1 4 2 1 2. vector of nodes

[R] PDF text to work with maps.

2010-04-25 Thread Francisco Silva
Hi all folks, I would like to know if somebody has a PDF text with the first steps to use maps in R, like: insert maps, open maps, create adjacency matrix, make the moran index, etc. If somebody can send me a material of it I will be very glad and thankful Thanks a lot, Gildemir Silba __

Re: [R] R-help Digest, Vol 86, Issue 26

2010-04-25 Thread Francisco Silva
Hi all folks, I would like to know if somebody has a PDF text with the first steps to use maps in R, like: insert maps, open maps, create adjacency matrix, make the moran index, etc. If somebody can send me a material of it I will be very glad and thankful Thanks a lot, Gildemir Silba __

[R] Problems if optimization

2010-03-26 Thread Francisco Silva
What's up fellows... I am a begginer in R and i am trying to find the parameters of one likelihood function, but when i otimize it, always appers a error or advertisement and the solve does not occur. The problem seems like that: "lMix<-function(pars,y){ beta1<-pars[1] beta2<-pars[2] beta3<-pars