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.
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 25. Read more here about why you should contribute and what is in it for you!
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.