Publications by Kitada Smalley

Advanced Logistic Models

04.04.2020

Part 1: Logistic Regression: Probit vs Logit install.packages("titanic", repos = "http://cran.us.r-project.org") ## ## The downloaded binary packages are in ## /var/folders/cc/1pvgy4s11875jgp6h1fml9wr0000gn/T//Rtmp1ZBJsG/downloaded_packages library(tidyverse) library(titanic) # LINEAR MODEL lm_t=lm(Survived ~ Fare, data=titanic_train) ggplot(...

1278 sym R (17296 sym/66 pcs) 4 img

Help for Sam

27.03.2020

nrgcen<-read.csv("/Users/hsmalley/Downloads/Energy Census and Economic Data US 2010-2014.csv", header=TRUE) #head(nrgcen) # at state level # cols for years # might be useful but need to find wanted cols first unemp<-read.csv("/Users/hsmalley/Downloads/unemployment-by-county-us/output.csv", header=TRUE) #head(unem...

5 sym R (3874 sym/5 pcs)

Critical Thinking: MLR Model Extensions

26.03.2020

Part I: Numeric Interactions In the past, we have looked at the Boston dataset to explore polynomial regression. We are going to use this dataset for Part I. You will need to load it into this lab session from library MASS. library(MASS) library(ISLR) names(Boston) ## [1] "crim" "zn" "indus" "chas" "nox" "rm" "age" ## ...

1750 sym R (5315 sym/22 pcs) 1 img

SP20: MATH 239 - MLR Geometry

16.03.2020

Exploring the Geometry of Multiple Linear Regression PART I: Warm-Up Example: Predicting Book Weights for Amazon Shipping When you buy a book off of Amazon, you get a quote for how much it costs to ship. This is based on the weight of the book. If you didn’t know the weight a book, what other characteristics of it could you measure to help pr...

3944 sym R (8728 sym/37 pcs) 7 img

SP20: MATH 239 - Categorical Explanatory Variables

11.03.2020

Sales of Child Car Seats We’ll be using the Carseat data set in the ISLR package. Its a simulated dataset about the sales of car seats at different stores. library(ISLR) data(Carseats) names(Carseats) ## [1] "Sales" "CompPrice" "Income" "Advertising" "Population" ## [6] "Price" "ShelveLoc" "Age" "Education" "Ur...

913 sym R (6538 sym/23 pcs) 3 img

7A: Adding Curvature

02.03.2020

Polynomial Regression ###### library(MASS) ## Warning: package 'MASS' was built under R version 3.6.2 data(Boston) dim(Boston) ## [1] 506 14 mod5<-lm(medv~poly(lstat,5), data=Boston) summary(mod5) ## ## Call: ## lm(formula = medv ~ poly(lstat, 5), data = Boston) ## ## Residuals: ## Min 1Q Median 3Q Max ## -13.5433 -3....

63 sym R (4435 sym/36 pcs) 4 img

Introduction to Graphics in R

30.01.2020

Introduction to Graphics in R We will be using data from my Spring 2020 classes for these graphics. Please import by logging into your class WISE page, setting the working directory, and calling the dataset. All data have been deidentified. How to load in data enrolled<-read.csv("spring2020_enrolled.csv", header=TRUE) How to...

1353 sym R (12750 sym/52 pcs) 17 img

Data Wrangling

29.01.2020

Data Wrangling The following is the code for class: library(tidyverse) ## Warning: package 'tidyverse' was built under R version 3.4.2 ## ── Attaching packages ─────────────────────────────────────────────────────────────�...

64 sym R (9254 sym/43 pcs) 5 img

Lab 1: Intro to R

27.01.2020

Problem 1 Part A Let’s look at the cars dataset: summary(cars) ## speed dist ## Min. : 4.0 Min. : 2.00 ## 1st Qu.:12.0 1st Qu.: 26.00 ## Median :15.0 Median : 36.00 ## Mean :15.4 Mean : 42.98 ## 3rd Qu.:19.0 3rd Qu.: 56.00 ## Max. :25.0 Max. :120.00 Including Plots You can a...

240 sym R (282 sym/3 pcs) 1 img

MATH239-quakes

17.02.2020

Import Earthquake Data The data set give the locations of 1000 seismic events of MB > 4.0. The events occurred in a cube near Fiji since 1964. lat = Latitude of event long = Longitude depth = Depth (km) mag = Richter magnitude stations = Number of statitions reporting library(tidyverse) data(quakes) Always plot your data! ## EX1 ggplot(quakes,...

491 sym R (2970 sym/32 pcs) 3 img