I found this paper on-line and had a look.
https://researchonline.lse.ac.uk/id/epr ... ls_LSE.pdf
In this video, I explain roughly what they are doing and the key formula: -
https://youtu.be/CK7LyOODP6c
I've created a spreadsheet that replicates this, which I have attached.
