Learn R Programming

avfintools (version 0.1.0)

thedayafter: Frequency plot of Subsequent Returns After a Percentage Input

Description

Returns a frequency plot drawn from historical data based on a percentage change that occurred

Usage

thedayafter(dataset, price_input, hideprints = TRUE)

Value

percentage frequency plot of the following day based on historical data

Arguments

dataset

Dataframe with daily data

price_input

the price movement, in percent, of the most recent (or whatever you are interested in) trading day

hideprints

if set to FALSE, returns summary statistics

Examples

Run this code
thedayafter(SPYdaily, -1.35)

Run the code above in your browser using DataLab