半導体指数、レーザーテックと10年債利回り

SOX指数と米国10年債利回り、デイトレ銘柄レーザーテックの時系列の関係をプロットした。 library(tidyquant) library(dplyr) library(ggplot2) soxlt <- tidyquant::tq_get(c("^SOX","6920.T","^TNX")) soxlt.tail <- soxlt %>% group_by(symbol) %>% do(ta…

$SOXLと$XOMのGeneralized Additive Model解析

最近チャートを見ている$SOXLと$XOMのGeneralized Additive Model解析を行った。 library(tidyquant) library(mgcv) soxl <- tidyquant::tq_get("SOXL") soxl$year <- as.integer(format(as.Date(soxl$date), "%Y")) soxl$month <- as.integer(format(as.Dat…

tidyquant (quantmod)でError in new.session()が出る場合

github.com remotes::install_github("joshuaulrich/quantmod@358-getsymbols-new.session")