add R file of mcmc train random effect model

- add R script
- update gitignore
merge