Learn R Programming

netCoin (version 2.1.0)

expectedList: Expected list.

Description

Converts a coin object to a links data frame with coincidences and expected values.

Usage

expectedList(data, names = NULL, min = 1, confidence=FALSE)

Value

A links data frame with coincidences and expected values.

Arguments

data

is a coin object. See coin

names

a character vector.

min

minimum value of the statistic to include the edge in the list.

confidence

add the confidence interval if TRUE.

Author

Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/

Examples

Run this code
# A character column (with separator)
frame <- data.frame(A = c("Man; Women", "Women; Women",
                        "Man; Man", "Undet.; Women; Man"))
data <- dichotomize(frame, "A", sep = "; ")[2:4]
C <- coin(data) # coincidence matrix
expectedList(C) # edge data frame

Run the code above in your browser using DataLab