vim_rsquared function

Estimate R-squared (proportion of explained variance) VIM based on event occurrence by a landmark time