update project advance 2 Rmd and advance3.R, adding model selection