I have panel data (different countries across different years) and I am trying to do both a trend analysis and a panel regression.
The trend analysis part: I want to see if there is a trend in high body mass index measured in DALYS (dependent variable) over time (independent variable) from 2000-2019, by assessing the relationship between DALYs and time.
The panel regression part: I also want to see if there is a relationship between DALYs (dependent) and sociodemographic index and unemployment level (independent variables).
Can I do all the work (trend analysis and panel regression) by including the time period as an independent variable with the other independent ones in one model? And try different models and compare them? And for instance after obtaining a regression coefficient for time, I can assess if DALYs is decreasing, increasing, or is stable across time.
I am using R software.