Hi
I want to assess the association of fruit (three levels of intake) with odds of high creatinine (tertile). I did ordinary logistic regression. How can I get P-trend for ordinary logistic regression?
When I do ordinary logistic regression in SAS, I get the same odds ratio when select "event" 1, or 3. It means the odds ratio is the same when I compare tertile 3 vs 1 or tertle 1 vs 3? Is it true? How can I limit it to tertile 3 to 1? Can you share the code?
I used this code:
proc logistic data=w plots(only)=(effect oddsratio);
class fruit(ref='0')Sex(ref='1')/param=ref;
model creatinine(event='1')= fruit Age Sex BMI_A /Clodds=wald;
title " Association of fruit with high creatinin (adjusted for age Sex BMI_A ) ";
run;
exposure: fruit
outcome: creatinine
covariates: age, sex, BMI
Thank you for your response.
Can you tell me how I can get P for trend for odds ratios which I gained from logistic regression? How can I do test for trend for logistic regression? Can you share the relevant code for P for trend for crude and adjusted models?
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.