I am learning NLmeans macro to estimate and test the difference in rates. I use
https://support.sas.com/kb/62/addl/fusion_62362_5_nlmeans.sas.txt
to call NLmeans macro. But there are a lot of errors in the code, and I don't know why. Can anyone help me?
By the way, my code was copied from "Macro Argument List Start" to the SAS editor and ran to implement the call to NLmeans. My code is as follows:
data insure524;
input n c age;
ln=log(n);
obsRate=c/n;
datalines;
500 42 1
400 101 2
;
proc genmod data=insure524;
class age;
model c=age/dist=poisson offset=ln link=log;
lsmeans age/e diff exp cl;
ods output coef=coeffs;
store out=insmodel;
run;%NLMeans(instore=insmodel, coef=coeffs, link=log, title=Difference of Age Rates)
This problem has bothered me for a long time, and I hope that there are good people to help me
Hello @Lucai_sister,
If you follow the steps in my reply to your question in the other thread, it will work without errors. You can omit steps 4 and 5 and use your code (with the INSURE524 dataset) instead.
Hello @Lucai_sister,
If you follow the steps in my reply to your question in the other thread, it will work without errors. You can omit steps 4 and 5 and use your code (with the INSURE524 dataset) instead.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.