BookmarkSubscribeRSS Feed
JDavis
Calcite | Level 5

Hello, all:

I'm trying to use proc variogram to study spatial correlation in a variable (present2012). The difficulty is that the range class 0 and 2 through 50 make sense. The range class 1, however, is not representative, for some reasons I won't go into here. I know how to condition the variogram estimate on the lags from 2 to 50:

proc variogram data=summarizedbycentroid plots=all;

       store out=storedmodel / label='WNV cases';

       compute lagd=.001 maxlag=50;

       coord xc=x yc=y;

       model form=exp rangelag=2 to 50;

       var present2012;

run;

but I can't figure out how to do something similar for (0, 2:50). I've tried everything, but I'm pretty sure it's not supported. Is there some way I can run the variogram, save the pairs, delete those in class 1, then run the variogram with this modified set? Etc.

Thanks for any insights,

JD

1 REPLY 1
PGStats
Opal | Level 21

How about :

compute lagdistance=2 maxlags=25;

model form=exp;

The implied LAGTOLERANCE would be 1. You could make it less if you wanted to exclude lag=1 pairs.

PG

PG

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 270 views
  • 0 likes
  • 2 in conversation