VS function

Function to perform variable selection