A generalized model for testing the home and favorite team advantage in point spread markets