Learn R Programming

gmwm (version 2.0.0)

gen_rw: Generate a random walk without drift

Description

Generates a random walk without drift.

Usage

gen_rw(N, sigma2 = 1)

Arguments

N
An integer for signal length.
sigma2
A double that contains process variance.

Value

grw A vec containing the random walk without drift.

Examples

Run this code
gen_rw(10, 8.2)

Run the code above in your browser using DataLab