How do I find the highest point in two vectors corresponing to the specificity and the sensitivity of a test?
<p>I was trying to find the highest point in two vectors (e.g. the sensitivity and specificity of a test) and the solution was simply to sum them and find the maximum.</p>

<pre><code>spec=c(.1,.2,.3,.4)
sens=c(.2,.4,.5,.4)
highest_point=which.max(spec+sens)
</code></pre>