Publications by DR VY
Document
1 List of Mergers # # files = paste0("C:/Users/dratnadiwakara2/Documents/OneDrive - Louisiana State University/Raw Data/HMDA/Ultimate Panel Data/",as.character(2000:2016),".fst") # # panel = lapply(files, read_fst, as.data.table = TRUE,columns=c("respondentid","agencycode","reportername","asofdate","parentname","parentidentifier","reporterho...
376 sym
Document
rm(list=ls()) library(stargazer) library(data.table) library(ggplot2) library(lfe) 1 Reading data nonsfha <- fread("non_sfha_sample.csv") 2 Descriptive Stats Non-SFHA t <- nonsfha[year==2016, c("policies_fraction","policies_fraction_pop","climatechangereal","worriedaboutclimatechange","climatechangeimpactpersonal","rep_gain","median_hh_inc...
142 sym R (17777 sym/10 pcs)
Document
rm(list=ls()) library(stargazer) library(data.table) library(ggplot2) library(lfe) 1 Reading data sfha <- fread("sfha_sample.csv") 2 Descriptive Stats Non-SFHA t <- sfha[year==2016, c("policies_fraction","policies_fraction_pop","climatechangereal","worriedaboutclimatechange","climatechangeimpactpersonal","hr_cost","median_hh_income","house...
166 sym R (26428 sym/12 pcs)
Document
rm(list=ls()) library(stargazer) library(data.table) library(ggplot2) library(lfe) library(rgdal) library(rgeos) library(gridExtra) library(scales) library(zoo) library(foreign) library(fst) library(stringr) library(ggrepel) library(lubridate) library(tidycensus) library(arrow) library(dplyr) library(purrr) library(jsonlite) l...
12 sym R (10738 sym/18 pcs) 10 img
Document
rm(list=ls()) library(stargazer) library(data.table) library(ggplot2) library(lfe) library(rgdal) library(rgeos) library(gridExtra) library(scales) library(zoo) library(foreign) library(fst) library(stringr) library(ggrepel) library(lubridate) library(tidycensus) library(arrow) library(dplyr) library(purrr) library(jsonlite) l...
1409 sym R (23529 sym/27 pcs) 4 img
Publish Document
Expected results are given here: https://rpubs.com/dimuthu999/assignment03answers Q1: Load houseprices.csv data available at: https://raw.githubusercontent.com/dimuthu999/4820/master/houseprices.csv (This is a subset of the original data set available at https://www.kaggle.com/shivalipatel/house-prices-linear-regression/data). (Hint: use fread) ...
969 sym R (1204 sym/4 pcs) 5 img
Document
Function to Extract Stock Prices Q1: Load monthly stock price data for Apple (AAPL), Boeing (BA), General Electric (GE), and Walmart (WMT) for years 2012 through 2016 and create four data.tables using the getTicker function we created in the class. head(AAPL) ## date price lag.price return company ## 1: Jan 2012 65.21143 NA...
697 sym R (1906 sym/7 pcs)
Document
Q1: Write R code to create a vector containing numbers from 10 to 25 ## [1] 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Q2: Calculate and print the mean, sum, and median of the vector created above ## [1] 17.5 ## [1] 280 ## [1] 17.5 Q3: Write a for loop that iterates over the numbers 100 to 107 and prints the square of each number ## [1] 1...
427 sym R (273 sym/7 pcs)
Document
rm(list=ls()) library(stargazer) library(data.table) library(ggplot2) library(lfe) library(rgdal) library(rgeos) library(gridExtra) library(scales) library(zoo) library(foreign) library(fst) 1 Read and clean NFIP data ‘Policies_Nov2019.fst’ is available here Script used to create ‘Policies_Nov2019.fst’ is available here poli...
2550 sym R (116658 sym/98 pcs) 15 img
Document
rm(list=ls()) library(stargazer) library(data.table) library(ggplot2) library(lfe) library(rgdal) library(rgeos) library(gridExtra) library(scales) library(zoo) library(foreign) library(fst) 1 Read and clean NFIP data ‘Policies_Nov2019.fst’ is available here Script used to create ‘Policies_Nov2019.fst’ is available here poli...
2398 sym R (102893 sym/91 pcs) 13 img