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
Industry Adjusted Measurehello, Please guide me about this comment. I am using agency cost measure as dependent variable (sel…
annual cross sectional regression versus panel regressionDear all In one article I have read that they estimate "average coefficients from ten annual (2005–2…
cmset choice models in Stata 16I am trying to figure out the new choice model (cmset) analysis for results of the discrete choice e…
Multiple tabulate for different yearsHello, I am trying to put together a table to see the frequency of occurrence of 1 (it is a dummy v…
New to stata need help.hi my final year project involves analyzing bicycle crashes in my state, im new to the software stat…
Subscribe to:
Post Comments (Atom)
0 Response to Correlation between the trajectoy ovr time of two variables
Post a Comment