randwalk: Random Walk Simulation

Description Usage Arguments Value Author(s) Examples

View source: R/randwalk.R

Description

Simulates random walks over two networks to examine the characteristics of spontaneous spreading activation

Usage

1
randwalk(A, B, reps = 20, steps = 10, iter = 10000)

Arguments

A

Adjacency matrix of a semantic network

B

A comparison adjacency matrix of a semantic network

reps

Number of repetitions of increments in 10 steps. Defaults to 20

steps

Number of random steps to begin with. Defaults to 10

iter

Number of iterations for each random walk

Value

A result matrix containing the means and standard deviations for several measures as well as p-values for a Mann-Whitney U test

Author(s)

Alexander Christensen <[email protected]> Yoed Kenett <[email protected]>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#finalize rmatA
finalCmat <- finalize(convmat)
#finalize rmatB
finalRmat <- finalize(rmat)

#equate rmatA and rmatB
eq1 <- equate(finalCmat,finalRmat)

#obtain respective equated response matrices
eqCmat <- eq1$rmatA
eqRmat <- eq1$rmatB


rw.results <- randwalk(eqCmat,eqRmat)

AlexChristensen/SemNetToolbox documentation built on Aug. 7, 2018, 6:02 p.m.