6
votes
1answer
1k views

How does Kalman filtering of beta in pairs trading model work in R?

Could anyone show how this could be done in R? The dlm package seems to be a good start, but I can't really find any good examples to learn from. Currently I have ...