simul_market: Simulate a base market over several periods based on a set of...

Description Usage Arguments Value

View source: R/simul_market.R

Description

Simulate a base market over several periods based on a set of assumptions.

Usage

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
)

Arguments

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)

Value

A tibble with the market size for eachh period.


NicolasJBM/simulacR documentation built on Dec. 25, 2019, 5:20 a.m.