☑ This topic is solved.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 02-02-2023 11:41 AM
(1100 views)
Hi
Proc logistic data = B30,
Model medication (ref="0") = age;
units age=10;
run;
I am trying to obtain 95%CI for 10 unit increase in age. the results show for odds ratio for age but not the 95%CI. It is not clear if am doing it wrong. adding "estimate and exp cl" to the line of code estimate units age=10/exp cl
shows syntax error.
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi @femiajumobi1,
To obtain the confidence interval, you can either use the CLODDS= option of the MODEL statement, e.g.,
model medication (ref="0") = age / clodds=wald;
or add an ODDSRATIO statement after the UNITS statement:
oddsratio age / cl=wald;
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi @femiajumobi1,
To obtain the confidence interval, you can either use the CLODDS= option of the MODEL statement, e.g.,
model medication (ref="0") = age / clodds=wald;
or add an ODDSRATIO statement after the UNITS statement:
oddsratio age / cl=wald;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Both codes worked. Qwesome thanks @FreelanceReinh .