making mixed effects models and some loess plots