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

Description Usage Arguments Value

View source: R/create_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
create_market(
  start = Sys.Date(),
  number_months = 60,
  base_volume = 1000,
  trend = 1/20000,
  randomness = 0.1,
  seasons = NULL
)

Arguments

start

Character or date. When the the time series should start.

number_months

Integer. How many months 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.

seasons

Tibble. "week", "weekday" and "coefficient" indicating the distribution.

Value

A tibble with the market size (forcast and actual) for each period.


NicolasJBM/simulR documentation built on Feb. 15, 2021, 9:38 a.m.