Publications by Dennis Pong
Causal Impact Analysis
Code Show All Code Hide All Code Casual Impact Analysis Casual Impact Analysis Load data Defining coalesce.na() Summarizing the table into useful time series Show the data Specify pre- and post-period Causal impact analysis Printing Results Summarizing the results in prose 2022-10-11 Load data data <- re...
595 sym Python (19638 sym/37 pcs) 7 img
Causal Impact Analysis
Code Show All Code Hide All Code Casual Impact Analysis Casual Impact Analysis Load data Defining coalesce.na() Pre-processing step Create a summary table for the metrics we wanted to evaluate in causal impact analysis Summarizing the table into useful time series Show the data Specify pre- and post-period ...
1047 sym Python (22860 sym/50 pcs) 4 img
Project 4 -- Text Classification (D607)
Installing Packages # install.packages("extraTrees") # install.packages("randomForest") # install.packages("ranger") require("klaR") ## Loading required package: klaR ## Loading required package: MASS Loading Libraries library(readr) library(purrr) library(dplyr) ## ## Attaching package: 'dplyr' ## The following object is masked from 'package:M...
5029 sym R (22123 sym/84 pcs)
Tidyverse Extend Assignment: purrr::map( ) Functions
Using purrr::map() Instead of For Loops in R In many other programming languages, for loops are extremely important. However, R is a functional programming language, which means that R has the ability “to wrap up for loops in a function, and call that function instead of using the for loop directly” (R for Data Science, pg. 322). Many people ...
8597 sym R (7714 sym/23 pcs)
Recommender System Scenario Analysis (D607)
Recommender System Scenario Analysis Recommender System Scenario Analysis Redfin: an Introduction Redfin’s Recommendation System - Redfin Matchmaker Scenario Design for Redfin for Customers Conclusions & Suggestions Dennis Pong 2020-04-20 Redfin: an Introduction Redfin is a search engine that allows prospetive home buyers to search on e...
5445 sym 3 img
Recommender System Scenario Analysis (D607)
Redfin: an Introduction Redfin is a search engine that allows prospetive home buyers to search on every single attribute of a home. Redfin Matchmaker, a service for recommending listings to you based on homes you’ve liked online and in person. Some recommendations will be for homes in a neighborhood you hadn’t considered, or with desirable at...
5196 sym 3 img
D607: Week 9 Assignment - Web APIs
Introduction This RMD connects to NYTimes’ Most Popular API, reads in JSON data, and transforms it into a R Dataframe. Most Popular API Provides services for getting the most popular articles on NYTimes.com based on emails, shares, or views. Setup library(jsonlite) library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are ...
885 sym R (5384 sym/10 pcs)
Assignment Tidying and Transforming Data (D607)
Setup Importing data into the R environment. arrival_stats <- readr::read_csv("https://raw.githubusercontent.com/metis-macys-66898/data_607_sp2020/master/arrival_stats.csv") ## Warning: Missing column names filled in: 'X1' [1], 'X2' [2] ## Parsed with column specification: ## cols( ## X1 = col_character(), ## X2 = col_character(), ## `Los ...
1739 sym R (6453 sym/22 pcs) 2 img 1 tbl
Project1_Data607
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(stringr) library(tidyr) Loading of the tournamentinfo text file data<-readLines('https://raw.githubuserco...
1760 sym R (11196 sym/30 pcs) 1 img
Data 607 - HW3
1. Using the 173 majors listed in fivethirtyeight.com’s College Majors dataset [https://fivethirtyeight.com/features/the-economic-guide-to-picking-a-college-major/], provide code that identifies the majors that contain either “DATA” or “STATISTICS” library(httr) url <- "https://raw.githubusercontent.com/fivethirtyeight/data/master/col...
2884 sym R (1938 sym/10 pcs)