define_contexts: Define truth for AUs active in different contexts

View source: R/define_contexts.R

define_contextsR Documentation

Define truth for AUs active in different contexts

Description

Define truth for AUs active in different contexts

Usage

define_contexts(aus, n_active_aus, contexts = NULL, au_fidelity = 1)

Arguments

aus

A character vector of AUs

n_active_aus

A numeric vector, the same length as contexts, indicating the number of AUs active per context.

contexts

A character vector of contexts

au_fidelity

A number between 1 and 0.5, indicating the probability that an AU is active in a context.

Value

A matrix of probabilities with contexts in rows and AUs in columns


NetFACS documentation built on Dec. 7, 2022, 1:12 a.m.