Examples of panel data analysis in r