Publications by Yunting Chiu

APIs and Scraping

20.05.2021

Instructions Write your solutions in this starter file. Modify the “author” field in the YAML header. Commit R Markdown and HTML files (no PDF files). Push both .Rmd and HTML files to GitHub. Make sure you have knitted to HTML for your final submission. Only include necessary code and data to answer the questions. Most of the functions y...

5579 sym R (11016 sym/43 pcs) 4 img

PCA in the tidyverse Framework

08.06.2021

We will in this lab explore how principal components are calculated and analyzed. We will be using the concrete data set from the {modeldata} package which is loaded with {tidymodels}. Compressive Strength of Concrete Mixtures Data library(ggbiplot) library(tidymodels) data(concrete) head(concrete) ## # A tibble: 6 x 9 ## cement blast_furnace_...

2600 sym R (11541 sym/46 pcs) 7 img

Bootstrapping

07.06.2021

In this assignment, I will be using Tidymodels instead of base R. 1 Exercise 1 (10 points) Review of k-fold cross-validation. Explain how k-fold cross-validation is implemented. This method involves randomly splitting the set of observations into k groups, or folds, of roughly similar size using a k-fold CV. The first fold serves as a validati...

11366 sym R (7811 sym/36 pcs) 1 img

LDA, QDA, KNN models

27.05.2021

We will be using the add-on package discrim to access functions to perform discriminant analysis models with parsnip and the klaR package to perform the QDA calculations. if you haven’t already got it installed run Create a test-train rsplit object of mlc_churn using initial_split(). Use the arguments to set the proportions of the training data...

5282 sym R (13556 sym/60 pcs)

training and testing datasets

26.05.2021

These sets of labs will introduce you to logistic regression. This will also be your first introduction to the rsample package which we will use to perform train-test split. Exercise 1 In this exercise we will explore the mlc_churn data set included in tidymodels. suppressPackageStartupMessages(library(tidyverse)) suppressPackageStartupMessages(...

4070 sym R (4901 sym/25 pcs) 2 img

Hello RStudio

25.05.2021

Learning goals Get acquainted with R and RStudio, which we will be using throughout the course to analyze data as well as to learn the statistical concepts discussed in the course. Appreciate the value of visualization in exploring the relationship between variables. Start using R for building plots and calculating summary statistics. Terminolo...

4435 sym R (4049 sym/25 pcs) 3 img

Linear Model Selection

20.05.2021

(9.1) A speaker stated: “In well-designed experiments involving quantitative explanatory variables, a procedure for reducing the number of explanatory variables after the data are obtained is not necessary.” Do you agree? Discuss. An explanatory variable is a type of independent variable. Assume that these variables have met the assumptions ...

6418 sym R (6485 sym/65 pcs) 4 img 1 tbl

Predicting COVID Death Determinants

20.05.2021

Introduction Here we have Covid-19 dataset included 12 variables and 51 observations. We will use regression trees methods to predict COVID death determinants. Covid Data library(tidyverse) library(rpart) library(rpart.plot) covid_df_train <- read_csv("./data/covidForRegression.csv") covid_df_train Decision Trees To Classify: Classification Tr...

3305 sym R (5530 sym/13 pcs) 3 img

forcats and lubridate

20.05.2021

suppressPackageStartupMessages(library(tidyverse)) suppressPackageStartupMessages(library(lubridate)) Question 1: Capital Bikeshare Data Load in the data containing trip information from the Capital Bikeshare program. Also load in the station information. Rename variables that have spaces in the names trip data, station data Note: These data we...

1901 sym R (4776 sym/21 pcs) 2 img

readr and tidyr

20.05.2021

suppressMessages(library(tidyverse)) Exercises 1. Baltimore City Crime Data: a. Import the data from https://dcgerard.github.io/stat_412_612/data/BPD_Part_1_Victim_Based_Crime_Data.zip. Baltimore_crime <- read_csv(file = "./data/BPD_Part_1_Victim_Based_Crime_Data.csv") ## ## ── Column specification ─────────────...

1509 sym R (8128 sym/21 pcs) 1 img