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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 1523 views
  • 0 likes
  • 3 in conversation