I've been messing around with different regression options in R and noticed that I haven't see any regression options that explicitly state they're implementing a DOLS algorithm. Many of the statistical papers mention the algorithm but when I go through source code for packages like urca or tseries I see them just using the standard lm package. For instance, urca's ca.po
test and tseries' po.test
both use straight lm to estimate the residual for the test. Is it possible to simulate DOLS using lm or dynlm?
I'm asking because I'd like to use DOLS for some stuff I've been working on and I can't figure out how to either simulate it with an existing package or what I'd need to write.
I might be wrong about this, because I know nothing of your area, but I believe the vars
package has everything you are looking for. It has a fabulous vignette, I think you are looking for the stability
function, particularly the dynamic
argument. Note that this function just wraps another from the package strucchange
.
Then again, I might be way off the mark if you aren't in econometrics.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With