BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
jayadevan12
Fluorite | Level 6

G'day,

 

I have the following code.


PROC IMPORT DATAFILE = '/home/devcmj0/sasuser.v94/test1.csv' DBMS='csv' OUT=test1 REPLACE;
RUN;

PROC IMPORT DATAFILE = '/home/devcmj0/sasuser.v94/wei.csv' DBMS='csv' OUT=wei1 REPLACE;
RUN;

PROC CONTENTS DATA=test1; RUN;
PROC CONTENTS DATA=wei1; RUN;

proc reg data=test1;model Y = x1 x2;run;

 

proc cspatialreg data=test1 Wmat=wei1;
model y=x1 x2 / type=SAR;
spatialid SID;
run;

Getting the below error messages.

ERROR: WMAT INPUT table WORK.WEI1 is not a CAS table.

 

What is the reason for this message?

 

Thank you,

Dev

 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Any chance that you meant to use Proc SPATIALREG (no C) in the name?

The CSPATIALREG procedure is specifically designed to operate on SAS Viya and performs computations in multiple threads on multiple machines. In comparison, the SPATIALREG procedure executes in multiple threads on a single machine. The CSPATIALREG procedure models cross-sectional spatial data in a way that is similar to how the SPATIALREG procedure in SAS/ETS software models them.

 

 

See https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/casecon/casecon_cspatialreg_overview02.htm

View solution in original post

4 REPLIES 4
PaigeMiller
Diamond | Level 26

Please modify the subject line of your post so that it briefly describes your question.

--
Paige Miller
jayadevan12
Fluorite | Level 6
Hi Ballardw,

spatialreg works in SAS. I'm wondering is there any procedure to run simultaneous equations of spatial Durbin model and impulse response function in SAS ?

Thank you very much for providing feedback on the SAS issue question?

Regards,
Dev
ballardw
Super User

Any chance that you meant to use Proc SPATIALREG (no C) in the name?

The CSPATIALREG procedure is specifically designed to operate on SAS Viya and performs computations in multiple threads on multiple machines. In comparison, the SPATIALREG procedure executes in multiple threads on a single machine. The CSPATIALREG procedure models cross-sectional spatial data in a way that is similar to how the SPATIALREG procedure in SAS/ETS software models them.

 

 

See https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/casecon/casecon_cspatialreg_overview02.htm

jayadevan12
Fluorite | Level 6
Hi Ballardw,

spatialreg works in SAS. I'm wondering is there any procedure to run simultaneous equations of spatial Durbin model and impulse response function in SAS ?

Thank you very much for providing feedback on the SAS issue question?

Regards,
Dev


SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 742 views
  • 2 likes
  • 3 in conversation