I'm running regression models for my project on physical activity and social mobility
I ran the following commands to get the log of my outcome variables of interest (and to get rid of my 0 values):
gen logtotalpa=log(totalpa+0.01)
gen logtotalmod=log(totalmod+0.01)
gen logtotalvig=log(totalvig+0.01)
gen logtotalwalk=log(totalwalk+0.01)
gen logsum_vigandmod=log(sum_vigandmod+0.01)
I then ran the following linear regression commands:
I've attached tables of frequences for the variables above in case you can figure out something I'm missing.
Any advice would be greatly appreciated!
I ran the following commands to get the log of my outcome variables of interest (and to get rid of my 0 values):
gen logtotalpa=log(totalpa+0.01)
gen logtotalmod=log(totalmod+0.01)
gen logtotalvig=log(totalvig+0.01)
gen logtotalwalk=log(totalwalk+0.01)
gen logsum_vigandmod=log(sum_vigandmod+0.01)
I then ran the following linear regression commands:
- mixed logtotalpa scale_1 scale_2 i.age i.gender i.area i.parenthood || country:
- mixed logtotalmod scale_1 scale_2 i.age i.gender i.area i.parenthood || country:
- mixed logtotalvig scale_1 scale_2 i.age i.gender i.area i.parenthood || country:
- mixed logtotalwalk scale_1 scale_2 i.age i.gender i.area i.parenthood || country:
- mixed logsum_vigandmod scale_1 scale_2 i.age i.gender i.area i.parenthood || country:
I've attached tables of frequences for the variables above in case you can figure out something I'm missing.
Any advice would be greatly appreciated!
Comment