Description Usage Arguments Value
Simulate a base market over several periods based on a set of assumptions.
1 2 3 4 5 6 7 8 9 | simul_market(
start = Sys.Date(),
years = 5,
base_volume = 1000,
trend = 0.05,
randomness = 0.1,
coeffday = NULL,
coeffmonth = NULL
)
|
start |
Character or date. When the the time series should start. |
years |
Integer. How many years should the time series last. |
base_volume |
Integer. Set magnitude for average daily firm demand. |
trend |
Double. Linear trader across all periods. |
randomness |
Double. Percentage of random variation for the demand. |
coeffday |
Tibble. 7 observations for 2 variables: the week day (short) and the distribution (higher numbers indicate on which days demand should be concentrated) |
coeffmonth |
Tibble. 12 observations for 2 variables: the month (number) and the distribution (higher numbers indicate on which months demand should be concentrated) |
A tibble with the market size for eachh period.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.