BookmarkSubscribeRSS Feed
Mehdi_R
Fluorite | Level 6

Hello everybody:

I have been trying to implement bayesian geostatistical spatial analysis in PROC MCMC (using latitude and longitude info). After a couple of days and getting many errors, now I suspected that spatial analysis is not possible in PROC MCMC. I also found the following sentence in the SAS user guide for PROC MCMC:

" The random-effects parameters associated with each subject in the same RANDOM statement are assumed to be conditionally independent of each other, given other parameters and data set variables in the model."

So my RANDOM statement which is

random gamma ~ mvn(mean, cov) subject=cluster_id ;

is wrong, where, mean is zero vector, cov is covariance matrix with a spatial correlation and cluster_id is a variable in the dataset which identifies clusters. I will be thankful if anyone can comment on this. Aren't we really able to do spatial statistics analysis in PROC MCMC? If not, what is your suggestion?

2 REPLIES 2
SteveDenham
Jade | Level 19

Perhaps I am missing a key element here, but if the matrix cov accurately reflects a spatial correlation, and is correctly defined in the programming statements, then this should work.  Can you share the entirety of your PROC MCMC code?

Steve Denham

Ksharp
Super User

There is a new PROC SSP added into SAS9.4  . Maybe you should take a look at it .

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1509 views
  • 0 likes
  • 3 in conversation