RcmdrPlugin.BWS3-package {RcmdrPlugin.BWS3} | R Documentation |
R Commander Plug-in for Case 3 Best-Worst Scaling
Description
This package adds menu items for case 3 (multi-profile case) best–worst scaling (BWS3) to the R Commander. BWS3 is a question-based survey method that designs various combinations of attribute levels (profiles), asks respondents to select the best and worst profiles in each choice set, and then measurespreferences for the attribute levels by analyzing the responses. For details on BWS3, refer to Louviere et al. (2015).
Details
This package is an R Commander plug-in package for case 3 best–worst scaling (BWS3). It depends on support.BWS3 (Aizaki 2019), support.CEs (Aizaki 2012, 2023), survival (Therneau 2023; Therneau and Grambsch 2000), and Rcmdr (Fox 2005, 2017; Fox and Bouchet-Valat 2023). Refer to Aizaki (2019) and ‘Non-Market Valuation with R’ <http://lab.agr.hokudai.ac.jp/nmvr/> for a brief introduction to BWS3 in R. A manual for this package is available at <https://sites.google.com/view/r4sp/rcmdrplugin>.
After successfully installing and loading RcmdrPlugin.BWS3,
the R Commander window will appear, and then you will find ‘BWS3
’
added to the top-level menus in the R Commander window.
Selecting ‘BWS3
’ displays menu items. When selecting a menu item,
the corresponding dialog box opens. The following dialog boxes are
provided by RcmdrPlugin.BWS3:
The dialog box for ‘
Design choice sets...
’ designs choice sets for BWS3 with the rotation design method or mix-and-match method using the functionrotation.design
in support.CEs.The dialog box for ‘
Display questions...
’ shows BWS3 questions that are converted from the choice sets designed in the first dialog box using the functionquestionnaire
in support.CEs.The dialog box for ‘
Create data set for analysis...
’ creates a data set for BWS3 analysis from the choice sets designed in the first dialog box and a data set containing responses to BWS3 questions using the functionbws3.dataset
in support.BWS3. The current version assumes that a maximum difference model is used. The menu item ‘Create data set for analysis...
’ is activated if a data set is selected as the active data set.The dialog box for ‘
Create interactions...
’ creates interactions between attribute/level variables and covariates in the data set for BWS3 analysis. The menu item is activated if the data set for BWS3 analysis created in the previous daialog box is selected as the active data set.The dialog box for ‘
Fit model...
’ implements a conditional logit model analysis of the data set for analysis created in the previous dialog box using the functionsclogit
in survival andgofm
in support.CEs. The menu item ‘Fit model...
’ is activated if the data set for BWS3 analysis created in the previous dialog box is selected as the active data set.The dialog box for ‘
Calculate MWTP...
’ calculates marginal willingness to pays (MWTPs) of non-monetary variables from the model fitted in the previous dialog box using the functionmwtp
in support.CEs. The menu item ‘Calculate MWTP...
’ is activated if the fitted model is selected as the active model.The dialog box for ‘
Load saved objects...
’ loads an R Data (rda) file saved in the dialog box for ‘Design choice sets...
’ or ‘Create data set for analysis...
’ using the functionload
in base.
Acknowledgments
This work was supported by JSPS KAKENHI Grant Number JP20K06251.
Author(s)
Hideo Aizaki
References
Aizaki H (2012) Basic Functions for Supporting an Implementation of Choice Experiments in R. Journal of Statistical Software, 50(C2): 1–24. https://www.jstatsoft.org/article/view/v050c02.
Aizaki H (2019) support.BWS3: Tools for Case 3 Best-Worst Scaling. R package version 0.2-0. https://CRAN.R-project.org/package=support.BWS3.
Aizaki H (2023) support.CEs: Basic Functions for Supporting an Implementation of Choice Experiments. R package version 0.6-0. https://CRAN.R-project.org/package=support.CEs.
Fox J (2005) The R Commander: A Basic Statistics Graphical User Interface to R. Journal of Statistical Software, 14(9): 1–42. https://www.jstatsoft.org/article/view/v014i09.
Fox J (2017) Using the R Commander: A Point-and-Click Interface for R. Chapman and Hall/CRC. https://socialsciences.mcmaster.ca/jfox/Books/RCommander/
Fox J, Bouchet-Valat M (2023) Rcmdr: R Commander. R package version 2.9-1. https://socialsciences.mcmaster.ca/jfox/Misc/Rcmdr/.
Louviere JJ, Flynn TN, Marley AAJ (2015) Best–Worst Scaling: Theory, Methods and Applications. Cambridge University Press.
Therneau T (2023) survival: Survival Analysis. R package version 3.5-7. https://CRAN.R-project.org/package=survival.
Therneau TM, Grambsch PM (2000) Modeling Survival Data: Extending the Cox Model. Springer.
Examples
if(interactive()) {
library(RcmdrPlugin.BWS3)
}