Stav dette: The selection function of the RAVE survey