File: test_minimal.R

package info (click to toggle)
r-cran-caret 6.0-73%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,884 kB
  • ctags: 9
  • sloc: ansic: 207; sh: 10; makefile: 2
file content (6 lines) | stat: -rw-r--r-- 258 bytes parent folder | download
1
2
3
4
5
6
context('Minimal Tests')
stats <- basic2x2Stats(factor(0:1), factor(0:1), pos='1', neg='0')
expect_equal(stats[['Sensitivity']], 1)
expect_equal(stats[['Specificity']], 1)
expect_equal(stats[['Pos Pred Value']], 1)
expect_equal(stats[['Neg Pred Value']], 1)