conditional_probabilities: Summarise dyadic combination of elements

View source: R/conditional_probabilities.R

conditional_probabilitiesR Documentation

Summarise dyadic combination of elements

Description

For all dyadic combinations that appear in the test dataset, this function returns the probability of A occurring (P(A)), the probability of B occurring (P(B)), the probability of A and B occurring simultaneously (P(AandB)) and, the probability of A given B (P(A|B)).

Usage

conditional_probabilities(netfacs.data)

Arguments

netfacs.data

An object of class netfacs or netfacs_multiple

Value

A summary tibble

See Also

network_conditional

Examples

data(emotions_set)
angry.face <- netfacs(
  data = emotions_set[[1]],
  condition = emotions_set[[2]]$emotion,
  test.condition = "anger",
  ran.trials = 50,
  combination.size = 2
)

conditional_probabilities(angry.face)

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