- I have a set of $N$ observations $(X_i,Y_i)$, with known heteroskedastic normal errors $(\epsilon_{Xi},\epsilon_{Yi})$.
- Errors in $X$ and $Y$ are independent: $cov(\epsilon_{Xi},\epsilon_{Yj}) = 0$
- Errors in X are correlated between observations: $cov(\epsilon_{Xi},\epsilon_{Xj}) ≠ 0$
- Errors in Y are correlated between observations: $cov(\epsilon_{Yi},\epsilon_{Yj}) ≠ 0$
I'm looking for a method and/or software package which will perform a regression model of the form $Y + \epsilon_{Y} = a(X+\epsilon_{X})+b$ on this kind of data set. I know of ODRPACK but it does not seem to account for error correlations between different observations. I also know of generalized least squares but I believe it does not account for errors in $X$.
If no such method exists, I'd still be happy to find something that would account for uncorrelated heteroskedastic normal errors in $X$ ($cov(\epsilon_{Xi},\epsilon_{Xj})=0$ if $i≠j$, and $cov(\epsilon_{Xi},\epsilon_{Xi})=\sigma^2_{Xi}$), but errors in $Y$ remaining correlated.