DGP: Data generating process for simulations: random walk with...

Description Usage Arguments Details Value

Description

This function simulates a random walk with drift 1/n, which is used when computing the tests for bubbles by Phillips et al. (2015)

Usage

1
DGP(n, niter)

Arguments

n

is the number of simulated time steps

niter

is the number of replications for the simulated DGP

Details

This function simulates a n x 1 vector following a a random walk with drift 1/n, and this operation is repeated niter times

Value

y a n x niter matrix of simulated data, where each colum represents a single simulated process


deanfantazzini/bubble documentation built on Oct. 22, 2020, 2:43 p.m.