#Instruction for running the codes 1.Main files: twomeasurements_samedistribution.R: run the simulation for the case where there are two replicate measurements for a covariate and the two measurement errors follow the same distribution twomeasurements_differentdistributions.R: run the simulation for the case where there are two replicate measurements for a covariate and the two measurement errors follow the different distributions threemeasurements_samedistribution.R: run the simulation for the case where there are three replicate measurements for a covariate and the three measurement errors follow the same distribution threemeasurements_differentdistributions.R: run the simulation for the case where there are three replicate measurements for a covariate and the three measurement errors follow the different distributions 2.Please run the main files directly. If you have interest in the subfiles, please read the instruction in the beginning of each file. 3.If you want to run the simulation under different settings, please adjust the parameters in the main files
Working Paper (2021)
Fernández-de-Marcos Alberto and García-Portugués Eduardo