sim.fluency | R Documentation |
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)
nodes |
Numeric.
Number of nodes to simulate in data.
Defaults to |
cases |
Numeric.
Number of participants to simulate in data.
Defaults to |
random |
Boolean.
Should the frequencies be randomly sampled from?
Defaults to |
A binary matrix with p
(participants) by n
(nodes)
Alexander Christensen <alexpaulchristensen@gmail.com>
# Simulate data for 50 nodes and 200 participants
sim.fluency(nodes = 50, cases = 200)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.