callback_comp {callback} | R Documentation |
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
)
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. |
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.
Author(s)
Emmanuel Duguet
Examples
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)