Learn R Programming

callback (version 0.1.3)

callback_comp: Creates the estimation data for a component model

Description

Creates the estimation data for a component model

Usage

callback_comp(
  data = NULL,
  cluster = NULL,
  candid = NULL,
  callback = NULL,
  model = NULL
)

Value

a list with class callback_comp containing:

  • aux_cand: list of the candidates.

  • aux_model: summary of the components model.

  • aux_boole: Boole matrix of the components model.

  • aux_det: determinant of t(aux_boole)%*%aux_boole.

  • aux_coef: auxilliary parameters.

  • aux_vcov: covariance matrix of the auxilliary parameters.

  • aux_cor: correlation matrix of the auxilliary parameters.

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.

model

a list of string lists, defining the components of the model, in difference from the reference candidate.

Author

Emmanuel Duguet

Examples

Run this code
data(mobility1)
model <- list(c("license"),c("woman"),c("woman","license","inter"))
callback_comp(data = mobility1, cluster = "offer",
candid = c("gender","licenses"), callback = "callback",
model = model)

Run the code above in your browser using DataLab