README.md

UBCstat406labs

The goal of UBCstat406labs is to be a one-stop install for all the packages, tutorials, and custom code used in UBC’s Stat 406 course.

Installation

You can install the current version from GitHub with:

# install.packages("devtools")
devtools::install_github("dajmcdon/ubc-stat406-labs")

Example

This is a basic example which shows you how to run a tutorial:

library(UBCstat406labs)
learnr::run_tutorial("rsquared","UBCstat406labs")

Currently available tutorials are:

learnr::available_tutorials("UBCstat406labs")
#> Available tutorials:
#> * UBCstat406labs
#>   - bootstrapping         : "Bootstrapping"
#>   - correlated-predictors : "Correlated predictors"
#>   - economicmobility      : "Predicting economic mobility"
#>   - ftest                 : "F-test for Linear Regression"
#>   - gradientascent        : "Gradient Ascent: Logistic Regression"
#>   - gradientdescent       : "Gradient Descent"
#>   - irisqda               : "Quadratic Discriminant Analysis "
#>   - knn                   : "K-Nearest Neighbors"
#>   - laplacianeigenmaps    : "Laplacian Eigenmaps"
#>   - logtransformations    : "Log Transformations on Linear Regression"
#>   - rsquared              : "R-squared and garbage predictors"
#>   - selectioncriterion    : "Comparing AIC, BIC, and CV"
#>   - treesandleaves        : "Trees and Leaves"
#>   - weightedleastsquares  : "Weighted Least Squares"


dajmcdon/ubc-stat406-labs documentation built on Aug. 18, 2020, 1:23 p.m.