Publications by Kitada Smalley

LMT:NFL

09.03.2021

Homework #5: Oxygen oxygen<-read.csv("https://raw.githubusercontent.com/kitadasmalley/sp21_MATH376LMT/main/data/oxygenPurity.csv", header = TRUE) model<-lm(purity~hydro, data=oxygen) summary(model) ## ## Call: ## lm(formula = purity ~ hydro, data = oxygen) ## ## Residuals: ## Min 1Q Median 3Q Max ## -4.6724 -3.2113 -0.0626 ...

254 sym R (3941 sym/35 pcs) 2 img

LMT: ANOVA

04.03.2021

For this example we will continue to use the {rocket} data. rocket<-read.csv("https://raw.githubusercontent.com/kitadasmalley/sp21_MATH376LMT/main/data/rocketProp.csv", header=TRUE) colnames(rocket)<-c("obs", "shear", "age") # fitting and store the SLR model mod<-lm(shear~age, rocket) Confidence Interval for \(\sigma^2\) Recall...

971 sym R (1094 sym/23 pcs)

LMT: Class Exercises for W11 and W12

06.04.2021

Delivery Data delData<-read.csv("https://raw.githubusercontent.com/kitadasmalley/sp21_MATH376LMT/main/data/deliveryTime.csv", header=TRUE) attach(delData) Class 11A: Create a 3D Scatterplot #install.packages("scatterplot3d") library("scatterplot3d") sp3d<-scatterplot3d(x=numCases, y=distance, z=delTime, ...

624 sym R (7012 sym/38 pcs) 1 img

LMT: Multicollinearity

19.04.2021

For this example, we will continue using the Hald data: Hald [1952] presented a dataset concerning the heat involved in calories per gram of cement (đť‘Ś) as a function of the amount of each of the following four ingredients in the mixture: \(x_1\): tricalcium aluminate \(x_2\): tricalcium silicate \(x_3\): tetracalcium alumino ferrite \(x_4\): ...

1483 sym R (4735 sym/30 pcs) 1 img

MATH266: Random Experiments

12.01.2022

Simulating Random Experiments with the sample function We can use the sample function simulate tossing a coin. This function takes the arguments: x: either a vector of one or more elements from which to choose, or a positive integer size: a non-negative integer giving the number of items to choose replace: should sampling be with replacement? B...

1847 sym R (554 sym/19 pcs)

DataViz: US Map Demo

27.10.2021

Motivating Example: In this demo we will be looking voter turn out data from IPUMS from 2016 and 2018. vote<-read.csv("https://raw.githubusercontent.com/kitadasmalley/DATA502/main/FALL2021/Data/voterTurnOut1618.csv", header=TRUE, stringsAsFactors = FALSE) Step 1: State Polygons Import the shapes using the usmaps pack...

315 sym R (1539 sym/9 pcs) 2 img

FC2021: Food Insecurity

23.10.2021

1) Load Food Insecurity Data Cleaned to change NULL to NA: fc<-read.csv("/Users/hsmalley/Downloads/fallFood.csv", head=TRUE, stringsAsFactors = FALSE) #str(fc) 2) Filter for State This filters the data for Oregon and also creates a variable called GEOID to join with spatial data later. GEOID is a code that is used by...

4598 sym R (5585 sym/14 pcs) 1 img

MATH138: Cereal Box Plot Lab

23.09.2021

Learning Objectives: Create boxplots to describe distributions of a variable Explore subgroups within the data Use numerical summaries to describe characteristics of the data Step 1: Import your data cereal<-read.csv("https://raw.githubusercontent.com/kitadasmalley/MATH138/main/HAWKES/Data/cerealDat.csv", header=TRUE) How man...

1222 sym R (466 sym/7 pcs)

DataViz: Intro to ggplot2 (points)

15.09.2021

In this lab we will be learning about some basics with ggplot2. Part I: Learning about your data Step 1: Load in the data First let’s load in the diamonds dataset. This data set is in the tidyverse package, so make sure that that library is called first. library(tidyverse) data("diamonds") Step 2: Learn a little bit about this data The str f...

2516 sym R (2281 sym/18 pcs) 11 img

MATH 138: Tables, Distributions, and Bar Charts

14.09.2021

Learning Objectives: Load data into R from github (or URL) Create tables Create different types of bar charts (using base R graphics) Choose appropriate types of tables and charts to tell a data story Motivating Example #1: Titanic At 11:40 pm on April 14, 1912 the Titanic hit an iceberg on its maiden voyage from Southampton to New York City. O...

3154 sym R (4352 sym/39 pcs) 11 img