SimulateDummy: Simulate dummy (0-1) variables.

Description Usage Arguments Value See Also

Description

Create dummy (0-1) variables that repeat a requested pattern of 0's and 1's, with the option to scale.

Usage

1
SimulateDummy(n, pos.idx = NULL, period = n, amplitude = 1)

Arguments

n

integer number of time points

pos.idx

vector of indices where simulated vector should take positive values (as opposed to zero)

period

integer controlling periodicity.

amplitude

numeric value > 0 specifying the value of all postive entries in the return vector.

Value

specified vector

See Also

Other Simulate.time.series: SimulateAR1, SimulateCorrelated, SimulateSinusoidal


google/amss documentation built on May 20, 2019, 5:05 p.m.