Hi guys,
I am having a problem with STATA analyses.
Problem is that I want to use the GARCH model in order to describe the variance.
In order to run the stata command for the GARCH model, I do need variance as my dependent variable, therefore I want to create my variable variance by creating the std dev. and then put it to the power of 2.
To do so, I used the command egen varcompany1 = sd(returncompany1), by(tradingday).
When I do so however, I get that STATA generated 50 missing values and nothing else.
Does somebody know how to fix this issue?
When I only use egen varcompany1 = sd(returncompany1), I get the same std dev. for every trading day.
Thanks for your responses in advance
Related Posts with Missing values created when trying to get standard deviation - GARCH model
Using a td() Function with a min() Function with Local MacroI am attempting to display the minimum value of a local macro in a tm() format: A. local VLM 720 72…
geocoding addresses to US census block groups and automationThe US Census has a neat online tool that lets you get the census tract and block group codes for up…
Share of working hour of an occupation in whole industryHello, I've been working CPS basic monthly sample and in the below data sample ahrswork1 stands for…
Stack constant after running multiple regressionsDear all, Please kindly help. I would like to report the constants clearly after running my regress…
Can a marginal effect be -1.37?After running a xtlogit model with an interaction term between a score (continuous variable) and res…
Subscribe to:
Post Comments (Atom)
0 Response to Missing values created when trying to get standard deviation - GARCH model
Post a Comment