Hello,
I hope you can guide me. I am working with panel data, the data is daily data for 90 days nested within individuals. I am interested in the trajectory over the 90 days period of two binary variables (yes or no answer), I will call them var1 and var2. So far, I tested the trajectories (independently) using mixed effect models (command below):
meglm var1 DAY || ID: DAY , or intmethod(lap) family(bernoulli) link(logit) dif
meglm var2 DAY || ID: DAY , or intmethod(lap) family(bernoulli) link(logit) dif
I got that the trajectory of var 1 is significant and increasing over time, while the trajectory of var2 is not significant at the 95% but it is at the 90%. I want to test if these trajectorie are asociated and of that asociation is significant. My question is: do you know how to test it? which would be the best way to do it?
I have read about people who suggest collapsing at the second level, I also saw correlation between time series, which is not appropiate in my case as time-series are not the same than panel data. Any thoughts? I also saw someone conducting the models for the trajectories (comands above) and then predicting standardized residuals and using an xtreg, re model to test the association. If, that is the correct approach, what I am looking for in the xtreg, re output?
Thank you
Related Posts with Correlation between the trajectoy ovr time of two variables
Pesaran TestHi guys, I am running a fixed effects regression and wanted to test for cross-sectional dependence. …
Mediation suregDear all, I am running the follwing STATA code from the example from this website: https://stats.id…
OLS Regression with lagsHey! I am writing my bachelor thesis, studying the relationship between monetary policy and housing…
Help needed: Extracting data from different rowsHi all, I need some help in extracting data from a column. I am trying to find a way to do so witho…
Years are dropped when running a fixed effect regressionDear all, For my thesis, for which I have gathered panel data, I have to run a logit regression wit…
Subscribe to:
Post Comments (Atom)
0 Response to Correlation between the trajectoy ovr time of two variables
Post a Comment