[R] Find Crossover Points of Two Spline Functions

Dario Strbenac dstr7320 at uni.sydney.edu.au
Mon Sep 28 09:00:06 CEST 2015


Good day,

I have two probability densities, each with a function determined by splinefun(densityResult[['x']], densityResult[['y']], "natural"), where densityResult is the output of the density function in stats. How can I determine all of the x values at which the densities cross ?

--------------------------------------
Dario Strbenac
PhD Student
University of Sydney
Camperdown NSW 2050
Australia



More information about the R-help mailing list