search for: r_general

Displaying 1 result from an estimated 1 matches for "r_general".

Did you mean: _general
2011 Jul 11
1
Named numeric vectors with the same value but different names return different results when used as thresholds for calculating true positives
...he threshold was found under different quantiles (e.g. the threshold value Z was found with quantile(x, probs = 0.045) and quantile(x, probs = 0.05). The following illustrates the problem: # Start of code with comments # Load vectors x and y con <- url("http://sites.google.com/site/ldemisc/r_general/tpfpdat.Rdata") load(con) close(con) # Data frame to collect TP and FP values based on different thresholds of vector x bins <- 0.005 ctch <- data.frame(matrix(nrow = 100 / (bins * 100) + 1, ncol = 4)) colnames(ctch) <- c("threshold", "val", "tp", "...