hello, people,
I have met this problem that when I run the score statement, the oversampling part is wrong, can anyone help me figure it out? (here is the screen shot of the problem).
thanks.
Your code makes reference to a macro variable called "p1." Where you use it in the code, it should resolve the name of a variable in your score data that has the prior probability of an event. I have absolutely no way to know what the name of that variable is, but I think you have a few options.
If you know what the variable is supposed to be, you can 1) hard code it so that "priorevent = your_variable" or 2) set p1 to the variable value with "%let p1 = your_variable" above your proc logistic. Alternately you can try just removing the "priorevent=&p1" from your code, but if it was there before, it's likely there for a reason.
Your issue is a macro variable reference that doesn't resolve, resulting in invalid syntax.
Where are you setting the value of &pi1?
I have not put Pi1 in any file, hwo can I write the command if I want set the pi1 into the file that located in the \Users\peng\Downloads\PMLR?
Your code makes reference to a macro variable called "p1." Where you use it in the code, it should resolve the name of a variable in your score data that has the prior probability of an event. I have absolutely no way to know what the name of that variable is, but I think you have a few options.
If you know what the variable is supposed to be, you can 1) hard code it so that "priorevent = your_variable" or 2) set p1 to the variable value with "%let p1 = your_variable" above your proc logistic. Alternately you can try just removing the "priorevent=&p1" from your code, but if it was there before, it's likely there for a reason.
thank you, it is solved by correcting the data path, and the priorevent = &pi doesn't change.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.