I have implemented in both python and R two papers for estimating subgroup means under misclassification, which are useful for data analyses.    T. K. MAK, W. K. LI, A new method for estimating subgroup means under    misclassification, Biometrika, Volume 75, Issue 1, March 1988,    Pages 105–111, https//doi.org/10.1093/biomet/75.1.105       Selén, Jan. “Adjusting for Errors in Classification and Measurement in       the Analysis of Partly and Purely Categorical Data.” Journal of the       American Statistical Association, vol. 81, no. 393, 1986, pp. 75–81.       JSTOR, www.jstor.org/stable/2287969. Accessed 10 Aug. 2020. -
View it on GitHub