Learn R Programming

simts (version 0.2.2)

gen_nswn: Generate Non-Stationary White Noise Process

Description

This function allows to generate a non-stationary white noise process.

Usage

gen_nswn(n_total, title = NULL, seed = 135, ...)

Value

A vector containing the non-stationary white noise process.

Arguments

n_total

An integer indicating the length of the simulated non-stationary white noise process.

title

A string defining the name of the time series data.

seed

An integer defined for simulation replication purposes.

...

Additional parameters.

Author

Yuming Zhang

Examples

Run this code
Xt = gen_nswn(n_total = 1000)
plot(Xt)

Yt = gen_nswn(n_total = 2000, title = "non-stationary 
white noise process", seed = 1960)
plot(Yt)

Run the code above in your browser using DataLab