Hi
I am having a nightmare!!!
I am having an error with part of my code. I believe that I know what is the error message means but I can't figure out how to solve it. I checked everything, I printed every value to make sure that it is well defined and yet once SAS reached that statement, it doesn't execute it!!!
Please help me.
Thank you
The error is
ERROR: Invocation of unresolved module R.
statement : ASSIGN at line 17681 column 1
traceback : module ADAPTIVE at line 17681 column 1
The error occurs because of the invalid statement:
RJ=R((m-j),1,0);
The SAS IML language thinks you want to call a function module named R that has three arguments.
I don't know what you intended, but perhaps something like
RJ=j((m-j),1,0);
The error is
ERROR: Invocation of unresolved module R.
statement : ASSIGN at line 17681 column 1
traceback : module ADAPTIVE at line 17681 column 1
The error occurs because of the invalid statement:
RJ=R((m-j),1,0);
The SAS IML language thinks you want to call a function module named R that has three arguments.
I don't know what you intended, but perhaps something like
RJ=j((m-j),1,0);
By the way, you can make your posts easier to read and to copy/paste if you use the "Running Man" icon to paste your SAS programs into the post. For example, you can get your code to look like this:
proc iml;
seed=22; theta1=0.1; theta2=0.5;
...
QUIT
This will make it easier for others to read your questions.
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!
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.