Skip to main content
. Author manuscript; available in PMC: 2018 Apr 24.
Published in final edited form as: J Thorac Cardiovasc Surg. 2017 Aug 30;155(3):1130–1136.e4. doi: 10.1016/j.jtcvs.2017.08.056

ALGORITHM 2.

Marginal VIMP index for a variable β

1: for b = 1, …, B do
2: Draw a bootstrap sample of the data; calculate the model OOB prediction error, Errb.
3: Fit a second model, but without β, and calculate its OOB prediction error, Errβ,bmarg
4: end for
5: Calculate the marginal VIMP by averaging: Δβmarg=b=1B[Errβ,bmarg-Errb]/B