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
mycolours package available on SSCThanks as always to Kit Baum who maintains SSC, a new package mycolours is available from SSC. The p…
Panel data - Following the death of a participant, how to remove all following observations for themHi everyone! I currently am cleaning a very big dataset (52 variables, 82284 observations) for long…
problems creating a graph, diagram, etc.Hello, Creating a graph, a diagram etc. doesn't work in my Stata program. The small box, that usuall…
Choice model margins problem: margins after cmclogit producing _outcome#altDear all, I am using data from a choice experiment with an unbalanced panel of 2-3 alternatives per…
Deciding on best matching algorithm with kmatchDear statalisters, Based on the paper of King and Nielson (2016) on the comparative analysis of mat…
Subscribe to:
Post Comments (Atom)
0 Response to Missing values created when trying to get standard deviation - GARCH model
Post a Comment