mutual.information: Calculates the pointwise mutual information of units with...

View source: R/mutual_information_elements.R

mutual.informationR Documentation

Calculates the pointwise mutual information of units with each other

Description

Calculates the pointwise mutual information of units with each other

Usage

mutual.information(netfacs.data)

Arguments

netfacs.data

object resulting from netfacs() function

Value

Function returns a dataframe that includes all combinations, their occurrence counts and probabilities, and the pointwise mutual information (standardised between -1 and 1). 1 means seeing one necessitates seeing the other, -1 means one precludes the other

Examples

### how do angry facial expressions differ from non-angry ones?

data(emotions_set)
angry.face <- netfacs(
  data = emotions_set[[1]],
  condition = NULL,
  test.condition = NULL,
  ran.trials = 100,
  combination.size = 4
)

mutual.information(angry.face
)


NetFACS documentation built on March 18, 2022, 7:40 p.m.