Learn R Programming

simts (version 0.2.2)

RW2dimension: Function to Compute Direction Random Walk Moves

Description

The RW2dimension function computes direction random walk moves.

Usage

RW2dimension(steps = 100, probs = c(0.25, 0.5, 0.75))

Arguments

steps

An integer that counts the number of steps of the random walk.

probs

A vector of double that specifies the probabilities to choose each direction.

Author

Stéphane Guerrier

Examples

Run this code
RW2dimension(steps = 50, probs = c(0.2, 0.5, 0.6))

Run the code above in your browser using DataLab