Skip to contents

Compares the partial bivariate patterns B1, B2, and B3 using AIC and returns the selected pattern.

Usage

partialPattern(empirical)

Arguments

empirical

An empirical bivariate count matrix with 16 rows and 2 columns, as returned by countEmpBivariate.

Value

A list with class c("dyadic_pattern", "list") containing components aic (a data frame with candidate patterns and AIC values), pattern (the selected pattern label), and call. It remains usable as an ordinary list.

Details

Conditional on the partial bivariate case, AIC is used to select among the B1, B2, and B3 structures.

Examples

chainFM_V1 <- c(1L, 2L, 1L, 2L, 2L, 1L)
chainSM_V1 <- c(2L, 1L, 2L, 1L, 1L, 2L)
chainFM_V2 <- c(1L, 1L, 2L, 2L, 1L, 2L)
chainSM_V2 <- c(2L, 2L, 1L, 1L, 2L, 1L)
emp <- countEmpBivariate(
  chainFM_V1, chainSM_V1, chainFM_V2, chainSM_V2,
  states = 2L
)
partialPattern(emp)
#> Dyadic interaction pattern
#> Pattern: partial actor (B2)