allocate_randomly: Randomly assign a set of articles amongst a set of users for...

allocate_randomlyR Documentation

Randomly assign a set of articles amongst a set of users for coding

Description

allocate_randomly assigns a set of articles amongst a set of users for them to code in the election violence database. By default the articles and user ids are checked against the database and codes which do not correspond to existing documents and/or users are ignored.

Usage

allocate_randomly(
  user_ids,
  set,
  coder_rate = 1.1,
  allocation_type = "coding",
  allocated_by = "regular_random_assignment",
  restrict_to_actual = TRUE,
  make_assignments = TRUE
)

Arguments

user_ids

The users to allocate the articles amongst (vector with single or multiple user_ids).

set

The set of documents which are to be allocated (vector with single or multiple of document_ids).

coder_rate

The average number of coders to be allocated to a document.

allocation_type

The value to write to the allocation_type field in the database document_allocations table (training, testing, coding, checking, ideal).

allocated_by

The value to write to the allocated_by field in the database document_allocations table.

restrict_to_actual

Should the restriction to actual users and documents be enforced. Should only be set to FALSE for debugging purposes.

make_assignments

Actually make changes to the database (TRUE) or only create a proposed set of changes as a dataframe (FALSE)


gidonc/durhamevp documentation built on April 8, 2022, 10:31 a.m.