I've a problem. I'm trying to find out if the changes in municipal resources have an impact on individual physical activity level? Or perhaps this question would work better are the individual level factors or municipal level factor main drivers for individual's physical activity levels ?
I have a data from year 2000 physical activity (pa_vol; 3-level ordinary outcome) and background information from 3200 individuals and also municipal (115 municipals) resources used for physical activity. Then I've this same data from same individuals from year 2011. In my opinion this is suitable for multilevel model. Individuals are nested in municipals. But how should I add time variable, year, to this model? There are off course more variables than just these but just to get an idea (varibales:5 individual level variables, municipal type and 4 municipal resources variables)
I have done xtset ID year. And then I've used
xi:meologit pa_vol age i.gender cost_per_inhabitant || municipal code : || ID:
or
xi:meologit pa_vol i.year age i.gender cost_per_inhabitant || municipal code : || ID: ||year:
Which is the right way?
And the main results behind these data are physical activity level decreased between those 2 measurement points, and € used for PA increased.
I just ordered this Multilevel and Longitudinal Modeling Using Stata, Volumes I and II, Fourth Edition (eBook) but I don't know how soon I'll get it.
Thanks beforehand,
Virpi
Related Posts with meologit and time variable
How can I export different tables to excel using different sheets?Hi, I'm having a hard time trying to export three different tabstats to three different excel sheets…
Problem using interaction terms with zinb to test for statistically significant differenceI am using Stata 15.1 with zinb. My dependent variable is number of times a respondent used a tannin…
Customize the width of columns in tables using putdocxHi all, I'm having difficulty determining if and how putdocx can create a table with explicitly set…
How can I keep a large a number of variables in STATAHello, I would like to do the OLS after variables selection by LASSO. Lasso selected about 70 varia…
xtabond2: change in results when dropping the first two periodsHi everyone, I am using xtabond2 to run difference and system GMM regressions. I'm working in Stata…
Subscribe to:
Post Comments (Atom)
0 Response to meologit and time variable
Post a Comment