Hello,
I am trying to build an error-in-variables model in which the error is Berkson-like rather than a classical measurement error.
My goal is to recover the long-term trend of a continuous variable. To begin with, I am working with a simple linear regression (Github readme) so that I can understand the concepts before moving to more complex models.
For each simulated sample, I have:
a. A continuous measurement (for example, the length of a bone).
b. A time interval within which the sample could be dated (as is common in archaeology). For the purposes of this example, I assume that the error reflects the duration of the archaeological phase (rather than also thinking about the ‘real’ duration of each sample).
To recreate a realistic archaeological scenario (Github R Code: Script 1 and Script 2), I (1) simulate a true date by drawing it from a uniform distribution over the full study period (let’s say between 100-900). I then (2) partition the timeline into archaeological phases using a broken-stick Dirichlet process.
Each simulated sample is (3) assigned to the phase containing its true date, and its observed dating interval is taken to be the start and end dates of that phase.
I know this might seem unnecessary, but I then need to evaluate many possible phase configurations to see where the model performs best or worse. This phase assignment reflects the fact that a sample in archaeology is usually assigned to a chronological phase based on the context rather than an exact date (unless an object has been directly dated using scientific methods, for which the error is usually Gaussian). For instance, if the context has material from 300 to 500 and a bone is found in that layer, the bone will be dated uniformly between 300 and 500.
I fit two models: one with the EIV, and one where the true date is compared against the midpoint. In theory what I want to obtain is that the sample’s estimated date shifts from a uniform probability to a more skewed distribution. For instance if the linear regression shows that the value around year 500 is 5 and my sample (dated 300-500) is 4.8 I would think that the true date is closer to 500 than to 300. The midpoint date in this case would be 400.
However, somehow the intercept and slope for both models seem to be almost identical, even in terms of the uncertainty of the credible intervals. Am I designing my simulation wrong, the model, or this symmetry is to be expected and a midpoint model will work the same as the EIV model because the uniform distribution will push values towards the mean?
I am really sorry for the long question, I have tried to sort it out by doing some reading, AI checking/polishing the code, etc. but I am stuck on why mathematically the two models recover the parameters in a similar way, while I was expecting the midpoint one to perform worse.
I apologise in advance if I’ve misunderstood or mistated any statistical concept here — I don’t have formal training in statistics. I try to compensate working with manuals, exercises, forums like this one, and (alas!) occasionally LLMs. I am not sure ‘Berkson error’ is the right title here, or I should say structured non random error