BookmarkSubscribeRSS Feed
saumyasri
Calcite | Level 5

I am trying to run the code given in SAS documentation https://documentation.sas.com/?docsetId=casactml&docsetTarget=casactml_rulemining_examples01.htm&doc...

 

It is giving following error: 

 
 proc cas;
     action ruleMining.mbanalysis /
         hierarchy={{name="firstLevel"}, {name="secondLevel"}}
         supmin=200 items=5 minitems=2 maxitems=10
         idVariable={"Customer"}
         out={name="out"}
         outrule={name="outrule", promote=true}
         outfreq={name="outfreq"}
         table={name="assocs"}
         tgtVariable="Product"
         savestate="mystateArm" ;
 run;

 

ERROR: Cannot convert parameter 'idVariable' from value_list to string.
ERROR: The action stopped due to errors.
Did anyone get the same error and how did resolve it?
3 REPLIES 3
Amir
Ammonite | Level 13

I assume you ran the earlier code in the link you provided (?), especially:

 

data mycas.assocs;
   set sampsio.assocs;
run;

 

Kind regards,

Amir.

saumyasri
Calcite | Level 5

Hi Amir,

 

Yes I ran all codes from top to bottom. Everything else works fine. I am getting the error when I run the mbaanalysis CAS action.

Amir
Ammonite | Level 13

OK then, as long as all previous code completed without issues.

 

If no one else is able to offer help on this forum, then I would suggest you get in touch with SAS Technical Support:

 

https://support.sas.com/en/technical-support.html

 

 

Kind regards,

Amir.

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 3 replies
  • 473 views
  • 0 likes
  • 2 in conversation