I have an integral equation of the form $$ T_1(x) = \int_0^x g(T_1(y)) \ d\hat{F}_n(y) $$ where $\hat{F}_n$ is the empirical cdf and $g$ is a function. I have a contraction mapping and so I am trying to solve the integral equation by using the Banach Fixed Point theorem sequence.
However, this runs very slowly in R and I am thinking it is because I am integrating using the sum() function for $x \in \hat{F}_n$ over and over again.
Is there a faster way to integrate using the empirical distribution with a function such as integrate()?