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.
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 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.