msgillian
5/20/2019 - 6:48 PM

R

atom

  • Try Shortcuts : ctrl \ or cmd \ to open/close the tree view emporarily show Menu Bar on ATOM:

  • Press ALT Key to make the Menu bar appear but it is not permanent. Always display the Menu Bar on ATOM: To make the change permanent, press ALT + V and then select Toggle Menu Bar option from the "View" drop-down down.

  • R data to csv file

write.csv(carSpeeds, file = 'data/car-speeds-cleaned.csv')

knit rmarkdown: echo= FALSE, message=FALSE,results='hide'

bloomerg

  • Vol surface in excel
=BDS("SPX Index","OPT_CHAIN","cols=1;rows=6148") 
= BDH(A2,"PX_BID","4/29/2019","4/29/2019") 
  • bloomberg vol surface in panel OVDV
  • moneyness OMON

R

  • Set working directory
setwd("\\\\dmsbalhome01/TA_Users/jinwu/doc/SVI/SVI R implementation/ImperialLecture2")
getwd()
  • To see how to use any function in R you can type either: ?(sqrt) or help(sqrt)
  • natral log log normal log log10

课程笔记

library(readr)
JC <- read_csv("Jiminy Cricket.csv")

qqnorm(data$cost2); qqline(data$cost2)

R Markdown

  • code -> insert chunk
library(readr)
mean(Hiccups$Carotid))
hist(Hiccups$Carotid)