build_design: Build the factorial design of the study.

Description Usage Arguments Value

View source: R/design.R

Description

This function builds the factorial design of the study based on the elements of the vectors specified as arguments. Each argument specified (i.e., vector) is regarded as a factor, and each value of the vectors is regarded as a level.

Usage

1
build_design(participants, nodes, connectedness, architectures)

Arguments

participants

(int vector) Varying number of participants, e.g., c(10, 50, 100).

nodes

(int vector) Varying number of nodes (i.e., variables), e.g., c(10, 15, 30).

connectedness

(double vector) Varying number of connectivity, e.g., c(1, 2, 3).

models

(int vector) Network models, e.g., c(ising = 1, ggm = 2).

architecture

(int vector) Network architectures, e.g., c(random = 1, small_world = 2, scale_free = 3).

Value

A matrix representing the factorial design of the study, where each row is a design cell.


mihaiconstantin/netPower documentation built on Oct. 4, 2021, 10:16 p.m.