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
Merging dataset with different number of subjectsHello, this is my first post and I am a bit of a newbie so I hope my question is not too obvious. I…
bar graph with event markersHello, I have a panel with 12 individuals from a company and daily data from 2010 to 2020. I have …
Calculate sum of values in a tableDear all, I am currently working with a dataset where I would like to get the sum of values with ce…
Time series - connected scatter?I want to create a rather simple graph that I thought that many others have used before. But after s…
Code for Approximating degree days with monthly average temperatureI am using CRU TS global gridded dataset for climate impacts on crop yields. The data has monthly me…
Subscribe to:
Post Comments (Atom)
0 Response to meologit and time variable
Post a Comment