Publications by DR VY
Document
The Big Mac index “The big mac index was invented by The Economist in 1986 as a lighthearted guide to whether currencies are at their “correct” level. It is based on the theory of purchasing-power parity (PPP), the notion that in the long run exchange rates should move towards the rate that would equalise the prices of an identical basket ...
1713 sym R (4645 sym/27 pcs) 10 img
Document
1 Reading data 1.1 NFIP 1.2 Election data 1.3 Yale perception data 1.4 Disaster declaration data 1.5 ACS Data 1.6 Merge Data 2 Regression Setup 2.1 Variables 2.2 Non-SFHA Sample 2.3 SFHA Sample 3 Table 1 3.1 Panel A Descriptive Stats Non-SFHA ## ## =====================================================================================...
1224 sym R (19403 sym/6 pcs)
Publish Document
## Warning: package 'data.table' was built under R version 4.0.5 ## Loading required package: xts ## Loading required package: zoo ## ## Attaching package: 'zoo' ## The following objects are masked from 'package:base': ## ## as.Date, as.Date.numeric ## ## Attaching package: 'xts' ## The following objects are masked from 'package:data.t...
2660 sym R (2543 sym/17 pcs) 4 img
Document
rm(list=ls()) library(ggplot2) library(data.table) ## Warning: package 'data.table' was built under R version 4.0.5 library(quantmod) ## Warning: package 'quantmod' was built under R version 4.0.5 ## Loading required package: xts ## Loading required package: zoo ## ## Attaching package: 'zoo' ## The following objects are masked from 'package:...
588 sym R (3663 sym/23 pcs) 1 img
Publish Document
rm(list=ls()) library(ggplot2) library(data.table) library(quantmod) library(xts) library(knitr) Q1: Use getSymbols function in quantmod package to extract daily closing prices of Tesla (ticker: TSLA) from 2015 to 2021. Print the header of the data. FALSE Open High Low Close Volume Adjusted FALSE 2015-01-02 44.574 44.6...
680 sym R (1339 sym/5 pcs) 1 img