proc genmod data = eyestudy; class carrot id; model lenses = carrot/ dist = poisson link = log; repeated subject = id/ type = unstr; estimate 'Beta' carrot 1 -1/ exp; run;
above was copied from below:
Above statement allows exp(beta) and exp(confidence intervals).
But I don't understand, the part of estimate statement, 1 -1. Is it because carrot is binary variable? If the variable has more than 2 categories or continuous, how estimate statement will be different. I would very much appreciate your help!
proc genmod data = eyestudy; class carrot id; model lenses = carrot/ dist = poisson link = log; repeated subject = id/ type = unstr; estimate 'Beta' carrot 1 -1/ exp; run;
above was copied from below:
Above statement allows exp(beta) and exp(confidence intervals).
But I don't understand, the part of estimate statement, 1 -1. Is it because carrot is binary variable? If the variable has more than 2 categories or continuous, how estimate statement will be different. I would very much appreciate your help!
Sun
Yes, it is because it has two levels. The number of coefficients will correspond with the number of levels and the ordering of the levels.
There are a number of good examples and explanations of estimate/contrast statements found here:
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 16. Read more here about why you should contribute and what is in it for you!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.