BookmarkSubscribeRSS Feed
DeepakSwain
Pyrite | Level 9

Hi there,

 

I am having a 2X2 table. I want to calculate f score with 95% confidence interval. Can anybody suggest me how to proceed. 

/*CREATING TABLE 2 BY 2 TABLE */
data study;
input obs1 obs2 count;
datalines;
1 1 331
1 0 13
0 1 2
0 0 654
;
run;

Thank you in advance for your kind reply. 

 

Regards,

Swain
5 REPLIES 5
PaigeMiller
Diamond | Level 26

You are talking about PROC FREQ, or something else?

 

As far as I know, there are no F-scores in a 2x2 table, there is a Chi-square value (not really a score), and the Chi-square value doesn't have confidence intervals associated with it.

 

So it's really not clear what you want. Please explain further.

--
Paige Miller
DeepakSwain
Pyrite | Level 9

Hi PaigeMiller,

 

 

 

Swain
PaigeMiller
Diamond | Level 26

If this is what you mean

https://en.wikipedia.org/wiki/F1_score

 

then I believe you could run PROC FREQ and then apply the formula for F1 to the PROC FREQ output. I don't see any confidence interval calculations.

--
Paige Miller
DeepakSwain
Pyrite | Level 9

Hi Paige Miller,

 

Just like kappa statistics with 95% CI can be obtained using proc freq with AGREE. I was looking for F1 score. Can you suggest something. 

 

With regards,

 

Swain
PaigeMiller
Diamond | Level 26

I am not aware of a 95% CI for the F1 score, nor is Wikipedia aware of such a confidence interval.

 

Thus the only possibility I can think of is some sort of bootstrap.

--
Paige Miller

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 2480 views
  • 5 likes
  • 2 in conversation