Simulates verbal fluency data based on the number of
nodes in the desired network. The summed total of
each response is simulated from a poisson distribution
(see rpois
), using frequencies from the
animals.freq
data. Using these
sums, participants responses are simulated with a probability of giving
a response as the total of the summed response over the number of participants.
sim.fluency(nodes, cases, random = FALSE)
A binary matrix with p
(participants) by n
(nodes)
Numeric.
Number of nodes to simulate in data.
Defaults to 100
Numeric.
Number of participants to simulate in data.
Defaults to 500
Boolean.
Should the frequencies be randomly sampled from?
Defaults to FALSE
.
Alexander Christensen <alexpaulchristensen@gmail.com>
# Simulate data for 50 nodes and 200 participants
sim.fluency(nodes = 50, cases = 200)
Run the code above in your browser using DataLab