Learn R Programming

NetFACS (version 0.5.0)

mutual.information: 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)

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

Arguments

netfacs.data

object resulting from netfacs() function

Examples

Run this code
### how do angry facial expressions differ from non-angry ones?
# \donttest{
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)
# }

Run the code above in your browser using DataLab