Changed function so that it excludes top percent of unstable obs. Changed example to Iris