Type: Package
Title: R Commander Plug-in for Case 3 Best-Worst Scaling
Version: 0.3-1
Date: 2025-06-14
Depends: support.BWS3, support.CEs, survival
Imports: Rcmdr
Description: Adds menu items for case 3 (multi-profile) 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 measures preferences for the attribute levels by analyzing the responses. For details on BWS3, refer to Louviere et al. (2015) <doi:10.1017/CBO9781107337855>.
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://sites.google.com/view/r4sp/rcmdrplugin
RcmdrModels: clogit
NeedsCompilation: no
Packaged: 2025-06-14 03:20:58 UTC; r
Author: Hideo Aizaki [aut, cre]
Maintainer: Hideo Aizaki <azk-r@spa.nifty.com>
Repository: CRAN
Date/Publication: 2025-06-14 03:50:05 UTC

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’ <https://nmvr.skr.jp/> 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:

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.

Fox J, Bouchet-Valat M (2023) Rcmdr: R Commander. R package version 2.9-1. https://CRAN.R-project.org/package=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)
}

Create Data Set for BWS3 Analysis

Description

Create a data set for BWS3 analysis from choice sets for BWS3 and data set containing responses to BWS3 questions.

Details

This dialog box creates a data set for BWS3 analysis from the choice sets designed in the ‘Design Choice Sets for BWS3’ dialog box and a data set containing responses to BWS3 questions by using the function bws3.dataset in support.BWS3. The current version assumes that a maximum difference model is used. This dialog box is activated if the data set for BWS3 analysis is selected as the active data set. For details on the results of this dialog box, refer to help for function bws3.dataset.

GUI elements of this dialog box are as follows.

Please click the ‘Cancel’ button and open this dialog box again if it does not work as expected.


Design Choice Sets for BWS3

Description

Design choice sets for BWS3 with the rotation design method or mix-and-match method.

Details

This dialog box designs choice sets for BWS3 with the rotation design method or mix-and-match method using the function rotation.design in support.CEs. For details on the results of this dialog box, refer to help for function rotation.design.

GUI elements of this dialog box are as follows.


Create Interactions between Attributes/Levels and Covariates

Description

Create interactions between attribute/level variables and covariates in the data set for BWS3 analysis.

Details

This dialog box creates interactions between attribute/level variables and covariates in the data set for BWS3 analysis. This dialog box is activated if the data set for BWS3 analysis created in the ‘Create Data Set for BWS3 Analysis’ dialog box is selected as the active data set.

GUI elements of this dialog box are as follows.


Fit Model to BWS3 Data

Description

Fit a model to BWS3 data.

Details

This dialog box fits the conditional logit model to the data set for BWS3 analysis using the functions clogit in survival and gofm in support.CEs. This dialog box is activated if the data set for BWS3 analysis created in the ‘Create Data Set for BWS3 Analysis’ dialog box is selected as the active data set. For details on the results of this dialog box, refer to helps for clogit and gofm.

GUI elements of this dialog box are as follows.


Calculate Marginal Willingness to Pay

Description

Calculate marginal willingness to pay (MWTP) values of nonmonetary variables from the fitted model.

Details

This dialog box calculates MWTP values of nonmonetary variables from the model fitted in the ‘Fit Model to BWS3 Data’ dialog box using the function mwtp in support.CEs. This dialog box is activated if the fitted model is selected as the active model. For details on the results of this dialog box, refer to help for function mwtp.

GUI elements of this dialog box are as follows.


Display BWS3 Questions

Description

Display a series of questions for BWS3.

Details

This dialog box shows a series of BWS3 questions that are converted from the choice sets designed in the ‘Design Choice Sets for BWS3’ dialog box using the function questionnaire in support.CEs. For details on the results of this dialog box, refer to help for questionnaire.

GUI element of this dialog box is as follows.


Collect Responses to BWS3 Questions

Description

Collect user's responses to BWS3 questions.

Details

Three types of dialog boxes are provided to collect user's responses to BWS3 questions that are converted from the choice sets designed in the ‘Design Choice Sets for BWS3’ dialog box.

The first dialog box (‘Set Options for Response Collection’) sets four options for response collections:

After confirming all the settings on the first dialog box, press the ‘OK’ button to continue.

A series of dialog boxes (‘Collect Responses to BWS3 Questions’) sequentially opens to collect the user's responses to BWS3 questions. In each dialog box, alternatives designed in the ‘Design Choice Sets for BWS3’ dialog box are presented. The user is asked to select their best and worst alternatives from the drop-down list boxes. After making the selection, the user clicks the ‘OK’ button to open a new dialog box corresponding to the next BWS3 question.

When all user responses to BWS3 questions have been collected, a dialog box (‘Save As’) opens if the ‘Save to file’ option was selected in the first dialog box. This saves the user's responses to an external file in CSV format.