sim.fluency: Simulates a verbal fluency binary response matrix

View source: R/sim.fluency.R

sim.fluencyR 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 100

cases

Numeric. Number of participants to simulate in data. Defaults to 500

random

Boolean. Should the frequencies be randomly sampled from? Defaults to FALSE.

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)


SemNeT documentation built on Aug. 12, 2023, 5:06 p.m.