Statistical Inference on a Linear Varying Coefficient on Longitudinal Data of Discrete Distribution