This function calculates shares of preference for each item based on the conditional logit model choice rule.
bws.sp(object, base, coef = NULL, order = FALSE, decreasing = FALSE, ...)
A vector or data frame containing the calculated shares of preference for each item is returned.
An output from the function clogit
in survival or vector/matrix/data frame containing estimates.
A character showing the base item.
A vector containing the names of item variables used in the model.
A logical value denoted by TRUE
when the resultant shares are sorted or FALSE
when not doing so.
A logical value denoted by TRUE
when the sort order is decreasing, or FALSE
when it is increasing.
Arguments passed to a function used internally.
Hideo Aizaki
This function calculates a share of preference for item \(i\). For details on the shares of preference, refer to support.BWS-package
. Althoug this function is developed for the function clogit
in the survival, it may be available for other functions regarding discrete choice models. This function assumes a simple model without covariates.
support.BWS-package
, bws.dataset
, clogit
## See examples in bws.dataset()
Run the code above in your browser using DataLab