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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 4 replies
  • 642 views
  • 2 likes
  • 3 in conversation