Publications by Mohamed Hassan-El Serafi
Analysis of Lobbying in the U.S.
Using datasets from OpenSecrets.org, I explored various areas of money in politics concerning lobbying. Top Recipients recipient_df <- read.csv("~/Downloads/Top Recipients of Contributions from Lobbyists, 2022 Cycle.csv", check.names = FALSE) head(recipient_df) ## Recipient From Lobbyists From Lobbyists + Family ## 1 C...
240 sym Python (46700 sym/52 pcs) 9 img
Data 607 Tidyverse Create Assignment
For this assignment, I will use dplyr, stringr, and ggplot2 packages from the tidyverse library. The dataset used was obtained from Kaggle, detailing the amount of money American sports owners have contributed to political campaigns and organizations during the 2016, 2018 and 2020 election cycles. df <- read.csv("https://raw.githubusercontent.com/m...
617 sym Python (4382 sym/19 pcs) 5 img
Data 606 Lab 8
The Human Freedom Index is a report that attempts to summarize the idea of “freedom” through a bunch of different variables for many countries around the globe. It serves as a rough objective measure for the relationships between the different types of freedom - whether it’s political, religious, economical or personal freedom - and other soc...
13211 sym 10 img
Data 606 Final Project Proposal
Data Preparation # load data library(tidyverse) library(DT) library(psych) df <- read.csv("https://raw.githubusercontent.com/moham6839/Data606_ProjectProposal/main/nbaplayersdraft.csv") df sum(is.na(df)) ## [1] 4467 summary(df) ## id year rank overall_pick ## Min. : 1.0 Min. :1989 Min. : 1.00 Mi...
1812 sym R (13380 sym/41 pcs) 7 img
Extra Credit Data 607 - Using JSON Files from Nobel Prize API
Working with the two JSON files available through the API at nobelprize.org, ask and answer 4 interesting questions. library(tidyverse) library(RCurl) library(rjson) library(data.table) library(httr) library(reshape2) library(htmlwidgets) library(kableExtra) Nobel Prize API prize_url <- "https://raw.githubusercontent.com/moham6839/Extra_Credit_JSO...
779 sym R (4468 sym/29 pcs) 3 img 2 tbl
Data 606 Lab 7
Getting Started Load packages In this lab, we will explore and visualize the data using the tidyverse suite of packages, and perform statistical inference using infer. The data can be found in the companion package for OpenIntro resources, openintro. Let’s load the packages. library(tidyverse) library(openintro) library(infer) The data Every tw...
9744 sym 2 img
Data 607 Assignment 9
Using an API key for The New York Times, I retrieved data of most viewed articles on NYTimes.com in the past 30 days: library(tidyverse) library(RCurl) library(rjson) library(DT) library(data.table) library(httr) library(kableExtra) Storing API link nyt_json_url <- "https://api.nytimes.com/svc/mostpopular/v2/viewed/30.json?api-key=BG3ZhQtYKZ7YG8bm...
478 sym R (1585 sym/11 pcs) 1 img
Data 606 Lab 6
Getting Started Load packages In this lab, we will explore and visualize the data using the tidyverse suite of packages, and perform statistical inference using infer. The data can be found in the companion package for OpenIntro resources, openintro. Let’s load the packages. library(tidyverse) library(openintro) library(infer) The data You will...
11463 sym Python (8232 sym/44 pcs) 2 img
Data 607 Project 3 Team Document
Team Document Group Members: Glen Dale Davis Coco Donovan Alex Khaykin Mohamed Hassan-El Serafi Eddie Xu Collaboration Tools: Communication: Slack thread, Zoom meetings Code Sharing: Github: https://github.com/geedoubledee/data607_project3 Project Documentation: RStudio Documents for our Research (which will include a recap of the motivati...
2983 sym 1 img
Data 606 Lab 5a - Foundations of Statistical Inference
In this lab, you will investigate the ways in which the statistics from a random sample of data can serve as point estimates for population parameters. We’re interested in formulating a sampling distribution of our estimate in order to learn about the properties of the estimate, such as its distribution. Setting a seed: We will take some random ...
14502 sym 6 img