Open fabrizioleone opened 1 year ago
Hello,
Thank you very much for your questions.
To select $\delta$ , you can ideally select the one which provides the smallest t-score associated with testing for $\lambda = 1$. This is very expensive to do as you need to calculate the standard error associated with this test. A more economical approach is to simply take the $\delta$ which provides provide the $\lambda$ closest (in absolute values) to 1.
When we worked on the applications of the paper, we found a grid of deltas of the form {exp(-4), exp(-2), ... , exp(6)} was effective, but you may want to have finer increments. Also, you may gain speed when iterating for different $\delta$ by setting starting values to be close to your previous estimates.
Let me know if I can help in some other way.
Kind regards, Louis
Hi,
Thanks for your work and for sharing this great package.
I would like to use the
iOLS_delta_HDFE
function in a setting in which the "log of zero" problem arises. I understand I need to specify a value for the hyper-parameter $\delta$ and that the functioniOLS_delta_HDFE_test
provides a way to select the best $\delta$ given my data.My understanding is that one should try different $\delta$ values and select the one that maximises the lambda statistics that
iOLS_delta_HDFE_test
computes (page 23 of your paper). Is this right?I am currently doing the following. I specify a grid for $\delta$ and loop over each element searching for the value that maximises the lambda statistics. However, this "greedy search" is very expensive and the results obviously depend on the chosen grid. Is there a way to automatically select the best $\delta$?
I provide below a minimal example of my current approach with simulated data.
In this simple example, I would select $\delta = 0.1$. However, I would like to search over a much finer and larger grid. Any help is much appreciated. Thank you.