data FatComp1;
input Test Response Count;
datalines;
0 0 17
0 1 21
1 0 3
1 1 39
;
proc sort data=FatComp1;
by descending Test descending Response;
run;
proc freq data=FatComp1 order=data;
weight Count;
tables Test*Response;
run;
Hi,
Can anyone help?
In the example above I need to calculate the likelihood ratio LR+, LR- with their 95% CI and was wondering if you can help?
Many thanks
Hi @jeka1212,
SAS Usage Note 24170 "Estimating sensitivity, specificity, positive and negative predictive values, ... contains a worked example where these statistics are calculated and a SAS macro NLEstimate is used to obtain 95% confidence intervals for them. Please apply this to your data and get back to us if you get stuck.
Not familiar with the 'LR+' and 'LR-' notation.
I suspect that you may want, at least partially
proc freq data=work.FatComp1 order=data; weight Count; tables Test*Response /or; run;
or
proc freq data=work.FatComp1 order=data; weight Count; tables Test*Response / cmh1; run;
Hi @jeka1212,
SAS Usage Note 24170 "Estimating sensitivity, specificity, positive and negative predictive values, ... contains a worked example where these statistics are calculated and a SAS macro NLEstimate is used to obtain 95% confidence intervals for them. Please apply this to your data and get back to us if you get stuck.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.