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
New version of cprdutil on SSCThanks as always to Kit Baum, a new version of the cprdutil package is now available for download fr…
Location quotient - how to calculateDear all, I would like to know your feedback about something I am struggling with since a lot. I wo…
Grouping Data by year and GenderHi, I have the following data for years 2012-2016 for males and females in this dataset. The v6, v7…
Foreach with leads and lags from numlistHi there, I am sorry if this is a trivial question, but I did not seem to find a satisfactory answe…
New version of descgen on SSCThanks once again to Kit Baum, a new version of the descgen package is now available for download fr…
Subscribe to:
Post Comments (Atom)
0 Response to Correlation between the trajectoy ovr time of two variables
Post a Comment