Inference In Generalized Linear Models With Applications