Dear all,
I am doing bilateral trade research and use pairs of countries as my panels. This implies I have around 22.000 panels. I would like to use GARCH to calculate the volatility of the bilateral exchange rate of each country pair. I would therefore have to do 22.000 GARCH calculations. Writing the code to do so could be automated to save time, but running 22.000 GARCH calculations would take days. Is there perhaps one command that would allow me to do this relatively time-efficient? Surely there must be more individuals that have executed GARCH analysis in large panel data set. I, however, can't find a satisfying answer online.
So far, I have been using this code:
arch BilER if pairid==1 , arch(1) garch(1)
predict vol1 if pairid==1, variance
arch BilER if pairid==2 , arch(1) garch(1)
predict vol2 if pairid==2, variance
gen 1Vol = Vol1 + Vol2
drop Vol1 Vol2
Related Posts with GARCH in large panels
Comparing observation value of VAR with values of VAR across all observationsI'm analyzing the association between a public policy of interest and various indicators of job qual…
Measuring HHI for datasets with lots of observationsHello everyone I am a thesis student from Belgium working on my thesis about labour market concentr…
Adding random intercepts in CMP slows down estimation a lot and makes required RAM exceed 500GBI'm running a 4-equation model (2 x Heckman selection model) with CMP and I want to add random inter…
Maximum number of values for a categorical variable.What is the maximum number of values for a categorical variable for a chi-square test? For example, …
Jeff Wooldridge teaching Causal Inference and DiD methods in StataHi everyone In case you're interested, Jeff Wooldridge is offering two Instats seminars on Causal I…
Subscribe to:
Post Comments (Atom)
0 Response to GARCH in large panels
Post a Comment