callback {callback}R Documentation

Data formatting

Description

Creates the data set used in the callback package.

Usage

callback(data, cluster, candid, callback, comp = "ref")

Arguments

data

A data frame.

cluster

A variable name, identifying the test (e.g., a job offer number).

candid

A list of factor names defining the candidates (e.g., gender, origin).

callback

A Boolean variable, equal to TRUE for non negative callbacks.

comp

An option, equal to "all" or "ref" (the default). "ref" give the comparisons with the reference candidate, and "all" the pairwise comparisons.

Value

A 'callback' object containing the formatted data set (fds), the averaged formatted data set (afds, for multiple tests), the list of the paired formatted data sets (pfds), the offer-level formatted data set (ofds), the names of the candidate variables (candid) and the name of the callback variable (callback).

fds contains the following variables:

afds contains the following variables:

pfds data frames containing the following variables:

ofds contains variables corresponding to the candidates' codes and the following variables:

Author(s)

Emmanuel Duguet

Examples

data(inter1)
m <- callback(data=subset(origin1,reput=="U"),cluster="offer",candid="origin",
     callback="callback",comp = "ref")
str(m)

[Package callback version 0.1.1 Index]