g points for the shape1, shape2, and rate parameters of the generalized Pareto distribution.</p>
<p>Optimization method: The function uses the optim function for optimization.
You might explore different optimization methods within optim for potentially
better performance.</p>
<p>Goodness-of-fit: While AIC is a useful metric for model comparison, it's
recommended to also assess the goodness-of-fit of the chosen model using
visualization and other statistical tests.</p>
    </div>
    <div class="section lev