Use linear interpolation to complete the data frame of optimal
alpha values in a given column. For the linear interpolation, we
approx function, with x-value lambda and
y-value from col.
data frame containing columns lambda and col
Column to complete
Same as original alpha, but with NAs in column col replaced by their linear interpolation.
Toby Dylan Hocking
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.