R

18. Model Basic with modelr

이부일 2018. 9. 13. 16:05

18. Model Basic with modelr

  • Introdunction

  • A simple model

  • Visualization models

  • Formulas and model families

  • Missing values

  • Other model families
    - Generalized linear models : stats::glm()
    - Generalized additive models : mgcv::gam()
    - Penealized linear models : glmnet::glmnet()
    - Robust linear models : MASS::rlm()
    - Trees : rpart::rpart(), randomForest::randomForest()
    - xgboost::xgboost()


[출처] R for Data Science, Hadley Wickham & Garrett Grolemund, O'REILLY, p345~374


# modelr
# modelr::data_grid()
# modelr::add_predictions()
# modelr::add_residuals()
# modelr::model_matrix()
# modelr::gather_predictions()
# modelr::spread_predictions()
# splines::ns()
# stats::nobs()