Evolutionary shift detection with variable selection method