I have a data set which includes begin and end dates of local restaurants since 2000 to 2017.
I like to examine whether a mega sport event of the local area which occurred in 2010 has any impacts on hazard of restaurant closure ever after.
I intuitively know that I need to add a dummy variable representing the occurrence of the mega event (gen dmega=(date>=2010).
I can do this by adding "dmega" which is based on calendar time after "stsplit. at(failure)".
Is this right approach? I heard that time varying covariate only should depend on _t rather than calendar time.
In this case, I created a dummy variable using calendar time rather than _t.
Also I want to add monthly or year tourist volume as time varying covariate. Is it right approach to add volume based on calendar time after "stsplit. at(failure)"?
Thanks in advance for any kinds of suggestions.
I like to examine whether a mega sport event of the local area which occurred in 2010 has any impacts on hazard of restaurant closure ever after.
I intuitively know that I need to add a dummy variable representing the occurrence of the mega event (gen dmega=(date>=2010).
I can do this by adding "dmega" which is based on calendar time after "stsplit. at(failure)".
Is this right approach? I heard that time varying covariate only should depend on _t rather than calendar time.
In this case, I created a dummy variable using calendar time rather than _t.
Also I want to add monthly or year tourist volume as time varying covariate. Is it right approach to add volume based on calendar time after "stsplit. at(failure)"?
Thanks in advance for any kinds of suggestions.
Comment