[R-sig-Geo] Bayesian Estimates for 1st-order Spatial Autoregressive Model

Eelke Folmer e.o.folmer at gmail.com
Wed Aug 8 16:09:11 CEST 2012


Hi,
I think you might be interested in the function lagsarlm in the spdep 
package for a maximum likelihood way to estimate the spatial 
autoregressivemodel for continuous (normal) data. spdep has all kinds of 
ways to calculate the spatial weight matrices too.
Regards,
Eelke

Op 8/7/2012 5:46 PM, CARTIER, ADRIAN AW (AG/1000) schreef:
> Greetings:
>
>
>
> I am a relatively new user to R. I was wondering if anyone is familiar with MATLAB's far_g() function.  If yes, is there an R equivalent to this?  I would like to have the ability to input as my observation vector continuous values. I noticed that there was something close in R, sar_probit_mcmc(), but I can only use a binary vector as my observation vector.
>
>
>
> If my question sounds a bit confusing I am pasting below the MATLAB description of the function so you can see what it is that I am looking for.
>
>
>
> function results =ar_g(y,W,ndraw,nomit,prior) % PURPOSE: Bayesian estimates for the 1st-order Spatial autoregressive model
>
> %          y =ho*W*y + e,    e = N(0,sige*V),
>
> %          V =iag(v1,v2,...vn), r/vi = ID chi(r)/r, r = Gamma(m,k)
>
> %          sige =amma(nu,d0)
>
> %          rho =niform(rmin,rmax), or rho = beta(a1,a2);
>
>
>
>
>
> Thanks in advance,
>
>
>
>
> ______________________________________
> Adrian Cartier, Ph.D. (LS3428)
> Monsanto Company
> TPS/Advancement Integration and Prediction
> Strategic Scientist - Quantitative Modeler
> 800 North Lindbergh Boulevard (Mail Code: LS3A)
> Creve Coeur, MO 63167
>
> Office: 314-694-5307
>
>
> This e-mail message may contain privileged and/or confidential information, and is intended to be received only by persons entitled
> to receive such information. If you have received this e-mail in error, please notify the sender immediately. Please delete it and
> all attachments from any servers, hard drives or any other media. Other use of this e-mail by you is strictly prohibited.
>
> All e-mails and attachments sent and received are subject to monitoring, reading and archival by Monsanto, including its
> subsidiaries. The recipient of this e-mail is solely responsible for checking for the presence of "Viruses" or other "Malware".
> Monsanto, along with its subsidiaries, accepts no liability for any damage caused by any such code transmitted by or accompanying
> this e-mail or any attachment.
>
>
> The information contained in this email may be subject to the export control laws and regulations of the United States, potentially
> including but not limited to the Export Administration Regulations (EAR) and sanctions regulations issued by the U.S. Department of
> Treasury, Office of Foreign Asset Controls (OFAC).  As a recipient of this information you are obligated to comply with all
> applicable U.S. export laws and regulations.
>
> 	[[alternative HTML version deleted]]
>
>



More information about the R-sig-Geo mailing list