Analysis of panel data with misclassified covariates