Publications by Benson Toi
Document
Analyze Roadmap Data source :Butler, J.S., T. Aldrich Finegan and John J. Siegfried (1998) “Does more calculus improve student learning in intermediate micro and macroeconomic theory ?”, Journal of Applied Econometrics, 13(2), April, 185–202. Data organized: Dataset store in github and tranforming data into readable description. Purpose ...
2349 sym R (6299 sym/30 pcs) 8 img
R bridge Week 1 Assignment
Question 1 Write a loop that calculates 13-factorial. Bonus - try to do it two different ways (for example use a for loop and a while loop). Do not use the standard factorial function. The goal is to learn about how R uses loops. While loop solution: f <- 13 #factorial i <- f #loop count s <- 1 #sum while (i > 0){ s <- s * i i <- i - 1 } pri...
676 sym R (1043 sym/8 pcs)
R bridge Week 2 Assignment
##Data Set https://vincentarelbundock.github.io/Rdatasets/csv/AER/CPSSWEducation.csv https://vincentarelbundock.github.io/Rdatasets/doc/AER/CPSSWEducation.html Question 1 Use the summary function to gain an overview of the data set. Then display the mean and median for at least two attributes of your data. #read dataset by import #Data_education...
1522 sym R (6602 sym/22 pcs)
Lab 1
library(tidyverse) library(openintro) Exercise 1 length(arbuthnot$girls) ## [1] 82 Exercise 2 I found a increase linear regression trend, and the number of girls baptized increasing over the years. ggplot(data = arbuthnot, aes(x=year, y=girls)) + geom_point() + stat_smooth(method="lm", col= "red") ## `geom_smooth()` using formula 'y ~ x' ...
2691 sym R (1723 sym/23 pcs) 3 img
607 Week 1 assignment
Introduction In the article “Dear Mona Followup: Where Do people Drink the Most Beer, Wine, ANd Sprits?” by Mona Chalabi, she wants to understand which country drinks most alcohol and what type of alcohol is the favorite. She diverse three kinds of alcohol ( Beer, Spirits, and Wine) to analyze the consumption per serving in each country. Arti...
1262 sym R (8042 sym/15 pcs) 1 img
Document
Libraries library(tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.1 ── ## ✓ ggplot2 3.3.5 ✓ purrr 0.3.4 ## ✓ tibble 3.1.6 ✓ dplyr 1.0.7 ## ✓ tidyr 1.1.4 ✓ stringr 1.4.0 ## ✓ readr 2.1.0...
317 sym R (925 sym/10 pcs) 1 img
Benson-Proposal
Data Preparation library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union library(Hmisc) #function describe ## Loading required package: lattice ## Loading required packag...
1469 sym R (2498 sym/21 pcs) 1 img
607 Project 2-2
library(tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.1 ── ## ✓ ggplot2 3.3.5 ✓ purrr 0.3.4 ## ✓ tibble 3.1.6 ✓ dplyr 1.0.7 ## ✓ tidyr 1.1.4 ✓ stringr 1.4.0 ## ✓ readr 2.1.0 ✓ ...
1163 sym R (2992 sym/25 pcs)
607 Project2-1
library(tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.1 ── ## ✓ ggplot2 3.3.5 ✓ purrr 0.3.4 ## ✓ tibble 3.1.6 ✓ dplyr 1.0.7 ## ✓ tidyr 1.1.4 ✓ stringr 1.4.0 ## ✓ readr 2.1.0 ✓ ...
590 sym R (106260 sym/19 pcs)
606 week 2
Load packages and the data library(tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.1 ── ## ✓ ggplot2 3.3.5 ✓ purrr 0.3.4 ## ✓ tibble 3.1.6 ✓ dplyr 1.0.7 ## ✓ tidyr 1.1.4 ✓ stringr 1.4.0 ## ...
3183 sym R (7020 sym/38 pcs) 8 img