sim.fluency {SemNeT} | R Documentation |
Simulates a verbal fluency binary response matrix
Description
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.
Usage
sim.fluency(nodes, cases, random = FALSE)
Arguments
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 |
Value
A binary matrix with p
(participants) by n
(nodes)
Author(s)
Alexander Christensen <alexpaulchristensen@gmail.com>
Examples
# Simulate data for 50 nodes and 200 participants
sim.fluency(nodes = 50, cases = 200)
[Package SemNeT version 1.4.4 Index]