Publications by Christian Piereth
Publish Document
# Load packages # Core library(tidyverse) library(tidyquant) Goal Collect individual returns into a portfolio by assigning a weight to each stock five stocks: “SPY”, “EFA”, “IJS”, “EEM”, “AGG” from 2012-12-31 to 2017-12-31 1 Import stock prices symbols <- c("IVV", "VOO", "VTSAX", "VSMPX", "FBGRX") prices <- tq_get(x = symbols...
431 sym R (3910 sym/18 pcs) 3 img
Publish Document
# Load packages # Core library(tidyverse) library(tidyquant) Goal Collect individual returns into a portfolio by assigning a weight to each stock five stocks: “SPY”, “EFA”, “IJS”, “EEM”, “AGG” from 2012-12-31 to 2017-12-31 1 Import stock prices symbols <- c("SPY", "EFA", "IJS", "EEM", "AGG") prices <- tq_get(x = symbols, ...
377 sym R (4115 sym/25 pcs) 2 img
Publish Document
# Load packages # Core library(tidyverse) library(tidyquant) Goal Visualize expected returns and risk to make it easier to compare the performance of multiple assets and portfolios. Choose your stocks. from 2012-12-31 to 2017-12-31 1 Import stock prices symbols <- c("IVV", "VOO", "VTSAX", "VSMPX", "FBGRX") prices <- tq_get(x = symbols, ...
644 sym R (3078 sym/18 pcs) 1 img
Publish Document
# Load packages # Core library(tidyverse) library(tidyquant) Goal Collect individual returns into a portfolio by assigning a weight to each stock five stocks: “IVV”, “VOO”, “VTSAX”, “VSMPX” from 2012-12-31 to 2017-12-31 1 Import stock prices symbols <- c("IVV", "VOO", "VTSAX", "VSMPX", "FBGRX") prices <- tq_get(x = symbols, ...
461 sym R (2275 sym/13 pcs) 2 img
Publish Document
# Load packages # Core library(tidyverse) library(tidyquant) Goal Collect individual returns into a portfolio by assigning a weight to each stock five stocks: “SPY”, “EFA”, “IJS”, “EEM”, “AGG” from 2012-12-31 to 2017-12-31 1 Import stock prices symbols <- c("SPY", "EFA", "IJS", "EEM", "AGG") prices <- tq_get(x = symbols, ...
351 sym R (2614 sym/14 pcs) 3 img
Publish Document
1 Import stock prices of your choice 2 Convert prices to returns by quarterly ## # A tibble: 201 × 3 ## asset data returns ## <chr> <date> <dbl> ## 1 VSMPX 2015-04-30 -0.0153 ## 2 VSMPX 2015-05-29 0.0138 ## 3 VSMPX 2015-06-30 -0.0171 ## 4 VSMPX 2015-07-31 0.0162 ## 5 VSMPX 2015-08-31 -0.0619 ## 6 VSMPX 2015-09-30 ...
276 sym 1 img
Publish Document
1 Import stock prices of your choice 2 Convert prices to returns by quarterly ## # A tibble: 201 × 3 ## asset data returns ## <chr> <date> <dbl> ## 1 VSMPX 2015-04-30 -0.0153 ## 2 VSMPX 2015-05-29 0.0138 ## 3 VSMPX 2015-06-30 -0.0171 ## 4 VSMPX 2015-07-31 0.0162 ## 5 VSMPX 2015-08-31 -0.0619 ## 6 VSMPX 2015-09-30 ...
276 sym 1 img
Publish Document
1 Import stock prices of your choice 2 Convert prices to returns by quarterly ## # A tibble: 201 × 3 ## asset data returns ## <chr> <date> <dbl> ## 1 VSMPX 2015-04-30 -0.0153 ## 2 VSMPX 2015-05-29 0.0138 ## 3 VSMPX 2015-06-30 -0.0171 ## 4 VSMPX 2015-07-31 0.0162 ## 5 VSMPX 2015-08-31 -0.0619 ## 6 VSMPX 2015-09-30 ...
276 sym 1 img