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
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
Please modify the subject line of your post so that it briefly describes your question.
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
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!
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.
Ready to level-up your skills? Choose your own adventure.