gen_num_passengers_alt: Generates passengers for line 4

Description Usage Arguments Value Examples

Description

It generate a forecast of passengers for all years of contract, with integrated and exclusie passengers.

Usage

1
2
3
gen_num_passengers_alt(sensibilidade = 1, use_random_walk = FALSE,
  start_value = 196860, num_years = 33, mu = start_value, sd = 0.07
  * start_value, beta = 1, jump = TRUE)

Arguments

sensibilidade

A vector

use_random_walk

Logical. If TRUE, it will use a random walk to forecast demand (instead of a fixed forecast as in excel)

start_value

A number. First point of the series. Use only if random_walk = T

num_years

A number

mu

A number

sd

A number

beta

A number. Effect of past step on the next step.

jump

logical. If TRUE, in the eight year of the series the forecasted demand increases by 25% relative to last value (plus error). Equivalent to set beta =1.25 for year 8.

Value

A list of four elements, all with size 33: numPassengersExclusive, numPassengersIntegrated, demanda_projetada and demanda_real

Examples

1
 gen_num_passengers_alt(sensibilidade = 1.3, jump=TRUE)

mgaldino/line4PPPsim documentation built on May 6, 2019, 7:03 p.m.