Skip to content
Prev 154673 / 398506 Next

convenient way to calculate specificity, sensitivity and accuracy from raw data

Dear Felix,

I have no idea about the calculation of your accuracy, sensitivity, etc, but
the sums:

dat <- read.table(file="clipboard") #read in your data as dataframe dat
dat$comp <- apply(dat,1,function(x) sum(x[-c(1,22)]==as.numeric(x[22])))

Good luck

Bart
drflxms wrote: