netfacs_bootstrap: Calculate expected probability from single bootstrap

View source: R/netfacs-helpers.R

netfacs_bootstrapR Documentation

Calculate expected probability from single bootstrap

Description

Calculate expected probability from single bootstrap

Usage

netfacs_bootstrap(
  subject,
  subject.weight,
  null.subjects,
  null.elements,
  test.combinations,
  max.combination.size,
  max.event.size
)

Arguments

subject

A character vector of unique subjects present in the data

subject.weight

A numeric vector of weights to be used when sampling subjects

null.subjects

A denoting the subject of null.elements

null.elements

A list of active elements in the null condition

test.combinations

A vector denoting AU combinations that are present in the test data

max.combination.size

A positive integer indicating the maximum AU combination size considered in the bootstrap

max.event.size

A positive integer indicating the maximum event size to be considered

Value

A list of bootstrapped probabilities for combinations and event sizes


NetFACS documentation built on Dec. 7, 2022, 1:12 a.m.