define_contexts {NetFACS}R 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


[Package NetFACS version 0.5.0 Index]