Dear Scott,
Welcome to this google group!
I really like the approach you took in the paper and performing a calibration using heavy water in the lab is an interesting idea whenever possible since calibration is often what severely limit the accuracy of assignments.
Before to turn to calibration, I wanted to confirm that indeed using the raster mean_predVar is the right choice for showing the uncertainty of the precipitation raster.
For calibration, when performing that step outside IsoriX 2 issues generally emerge:
- the uncertainty (variances but also covariances) of the precipitation
isoscape is not accounted for during the calibration step, but that is not an issue in your case because you did the calibration experimentally.
- the uncertainty of the calibration will not be accounted for during the assignment.
This second point is the thing that is more problematic here.
I thus see 3 possibilities:
- option 1: not accounting for the variation in calibration uncertainty
- option 2: accounting for the variation in calibration uncertainty crudely
- option 3: accounting for the variation in calibration uncertainty finely
For option 1, I would document the uncertainty in your regression slope (e.g. 95% CI on the regression slope) and if small enough I would argue that it is low enough that we assumed that it should not strongly impact the results of the assignment.
It is hard to know if there is or not a departure from that assumption without exploring option 2 or 3...
Option 2 would be to bootstrap data (resampling with replacement) and do "calibration
+ rescaling + assignment" many times and then combine the assignment
rasters obtained and recompute p-values.
That is a rather brute force way, but that seems easy enough to do and could satisfy a reviewer.
If you don't know how to but could prepare a mini-scrip starting from the data and leading to the assignment I could try to show you exactly how to (the week after next, since next week I will be at ESEB2022, a conference about evolutionary biology).
Option 3 would be that we do the maths properly and add external calibration as a core functionality in IsoriX.
I was always against this option since usually people request that so as to use calibration based on sedentary organisms, which would thus imply that there result depend on a different isoscape as the one used in IsoriX and thus creates unknown biases and uncertainty.
But, you won me over, since you external calibration is one that does not rely on an isoscape.
Others will be happy, since I am sure they will hijack this to use external calibration performed differently.
I am happy to implement option 3 within the next couple of months, provided I get a little help on the stats side from another developer (we will discuss this next week).
I cannot promise though that it will be done before your deadline.
If it turns out easy enough and if we find the time soon and can get to it the week after next, then I would suggest we don't bother with option 2.
I hope this helps,
Best,
Alex