Function to find the value of female life expectancy where the sex-gap is no longer expanding (tau). This method is slightly different than the one indicated in the original paper (likelihood). The main advantage: speed.
1 | find_tau(X, a = 1.05, f = 0.5)
|
X |
Input data object generated by prepare_data function. |
a |
Adjustment factor for maximum female life expectancy. |
f |
the smoother span. This gives the proportion of points in the plot which influence the smooth at each value. Larger values give more smoothness. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.