expectedList: Expected list.

Description Usage Arguments Value Author(s) Examples

View source: R/netcoin.R

Description

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

Usage

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

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.

Value

A links data frame with coincidences and expected values.

Author(s)

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

Examples

1
2
3
4
5
6
# 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

netCoin documentation built on Oct. 29, 2021, 1:06 a.m.