Hello all!
I need to conduct a test for trend on percentages to get a p-value. I found the following code in a SAS community website which is similar to the data I have:
data test(keep=year case log_n);
infile datalines;
input year case n;
log_n=log(n);
output test; datalines;
2000 100 50000
2005 75 60000
2010 50 75000;
run;
proc genmod data=test;
model case=year / dist=poisson link=log offset=log_n;
run;
The output is attached.
Is it correct to say that there is a significant difference between the proportions (cases/log_n) in the 3 years based on the Pr>ChisSq