are there any examples floating around of code to do co-integration tests?
I've seen some examples of pairs trading but what i'm interested in is, for example, if you have prices as
and a function, say,
find_co_in(price_df, sid(3766)) #ibm
and it returns
or something similar.