Inferences about habitat selection by animals derived from sequences of relocations obtained with global positioning system (GPS) collars can be influenced by GPS fix success. Environmental factors such as dense canopy cover or rugged terrain can reduce GPS fix success, making subsequent modeling problematic if fix success depends on the selected habitat. Ignoring failed fix attempts may affect estimates of model coefficients and lead to incorrect conclusions about habitat selection. Here, we present a habitat selection model that accounts for missing locations due to habitat-induced data losses, called a resource selection function (RSF) for GPS fix success. The model's formulation is similar to adjusting estimates of probability of occupancy when detection is less than 100% in patch occupancy sampling. We demonstrate use of the model with GPS data collected from an adult female mule deer (Odocoileus hemionus) and discuss how to analyze data from multiple animals. In the simulations presented, our habitat selection model was generally unbiased for GPS data sets missing up to 50% of the locations.