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
Endogeneity and RESET Test with PPMLHello, I'm trying to estimate trade potential for the BRICS group of countries - as in, intra-BRICS…
Stata forecast does not support mixed effects modelsAs part of reviewer's requests/recommendations, I am trying to compare forecast accuracy of the (alm…
attempt at simple xtline plot gives syntax errorHi everybody, I am using Stata15 and want to show oil price development in the time-period I am loo…
Data cleaning - checking correct encoding of variablesHello, I'm very new to Stata and am trying to complete some data cleaning. I have a dataset with 5 …
Charlson index for dataset that contains both ICD9 and ICD10 for different yearsHello, I am working on a hospital administrative dataset combined for multiple years between 2004-2…
Subscribe to:
Post Comments (Atom)
0 Response to Missing values created when trying to get standard deviation - GARCH model
Post a Comment