Fits a weighted least squares regression of D47 on temperature to bootstrap replicates of the calibration dataset. The weights don't come from the reported errors. They come from a regression of the absolute OLS residuals on the fitted values, so observations in regions with more scatter get less weight.
Value
A data.frame with one row per replicate and the columns alpha (intercept), beta (slope), and sigma (residual SD of D47 around the fitted line, including measurement error). Failed replicates are removed with a warning.
Details
A replicate fails when the regression of the residuals predicts a non-positive value, since the weights can't be computed.
Examples
ds <- cal.dataset(error = "S1", nobs = 50, seed = 1)
wols <- cal.wols(ds, replicates = 100)
colMeans(wols)
#> alpha beta sigma
#> 0.27136476 0.03649693 0.01195749
