@mpiktas has given a thorough answer. I would also suggest reading the Chapter 7 of documentation for plm package in R"plm versus nlme and lme4" section of documentation for plm package in R . The authors' discussion about difference between mixed models and panel data is worth a read.