Closed ijyliu closed 3 years ago
Actually, there are probably even better ways to structure this, particularly if things will be run in parallel.
I guess the focus should be on writing functions, which can be easily moved around from file to file as needed...
Current code does this very roughly... but it seems to work.
This issue is more or less complete
Implement something similar to https://github.com/ijyliu/ECMA-31330-Project/blob/main/Misc/PS1_Q3.ipynb ie, create a multi-index of N, rhos, any other parameters we want to vary, and apply a simulation function to it.
Make a dataframe of the cartesian product of simulation parameters
No need to store the actual data; instead, just store the true betas, the measurement error, the IV and PCR coefficients