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
Age rangeDear all, I would like to know how to specify age range in Stata. My current value range is 25-100,…
Problem with Outreg2Hi, I wonder if the outreg2 command comes through an option that allows the coefficient and their se…
Splitting variable based on conditionDear all, I wonder if it is possible to split string variables containing numbers using 'split Vari…
linear regressionHello great statisticians, I am a bit confused with using lfit vs predicted values. I have the data…
Generating new variable by counting observationsHello Members, I have a data set (shown below). I want to generate a new variable that counts the n…
Subscribe to:
Post Comments (Atom)
0 Response to Missing values created when trying to get standard deviation - GARCH model
Post a Comment