Variable Selection in Joint Generalized Linear Models