Type: Package
Title: R Commander Plug-in for Case 2 Best-Worst Scaling
Version: 0.3-0
Date: 2025-04-28
Depends: support.BWS2 (≥ 0.4-0), support.CEs, survival
Imports: Rcmdr, DoE.base
Description: Adds menu items for case 2 (profile case) best-worst scaling (BWS2) to the R Commander. BWS2 is a question-based survey method that constructs profiles (combinations of attribute levels) using an orthogonal array, asks respondents to select the best and worst levels in each profile, and measures preferences for attribute levels by analyzing the responses. For details, see Aizaki and Fogarty (2019) <doi:10.1016/j.jocm.2019.100171>.
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://sites.google.com/view/r4sp/rcmdrplugin
RcmdrModels: clogit
NeedsCompilation: no
Packaged: 2025-04-28 07:55:07 UTC; r
Author: Hideo Aizaki [aut, cre]
Maintainer: Hideo Aizaki <azk-r@spa.nifty.com>
Repository: CRAN
Date/Publication: 2025-04-28 08:20:02 UTC

R Commander Plug-in for Case 2 Best-Worst Scaling

Description

This package adds menu items for case 2 (profile case) best-worst scaling (BWS2) to the R Commander. BWS2 is a question-based survey method that constructs profiles (combinations of attribute levels) using an orthogonal array, asks respondents to select the best and worst levels in each profile, and measures preferences for attribute levels by analyzing the responses. For details, see Aizaki and Fogarty (2019) <doi:10.1016/j.jocm.2019.100171>.

Details

This package is an R Commander plug-in package for Case 2 (profile case) best–worst scaling (BWS2). It depends on DoE.base (Groemping 2018), Rcmdr (Fox 2005, 2017; Fox and Bouchet-Valat 2021), support.BWS2 (Aizaki 2021; Aizaki and Fogarty 2019), support.CEs (Aizaki 2012, 2021), and survival (Therneau 2022; Therneau and Grambsch 2000). Refer to Aizaki and Fogarty (2019) and ‘Non-Market Valuation with R’ <https://nmvr.skr.jp/> for a brief introduction to BWS2 in R, and Louviere et al. (2015) and Flynn et al. (2007) for BWS2. A manual for this package is available at <https://sites.google.com/view/r4sp/rcmdrplugin>.

After successfully installing and loading RcmdrPlugin.BWS2, the R Commander window will appear, and then you will find ‘BWS2’ added to the top-level menus in the R Commander window.

Selecting ‘BWS2’ displays menu items. When selecting a menu item, the corresponding dialog box opens. The following dialog boxes are provided by RcmdrPlugin.BWS2:

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. DOI: 10.18637/jss.v050.c02.

Aizaki H (2022) support.BWS2: Tools for Case 2 Best-Worst Scaling. R package version 0.4-0. https://CRAN.R-project.org/package=support.BWS2.

Aizaki H (2021) support.CEs: Basic Functions for Supporting an Implementation of Choice Experiments. R package version 0.5-0. https://CRAN.R-project.org/package=support.CEs.

Aizaki H, Fogarty J (2019) An R package and tutorial for case 2 best–worst scaling. Journal of Choice Modelling, 32, 100171. DOI: 10.1016/j.jocm.2019.100171.

Aizaki H, Nakatani T, Sato K (2014) Stated Preference Methods Using R. Chapman and Hall/CRC.

Flynn TN, Louviere JJ, Peters TJ, Coast J (2007) Best-Worst Scaling: What it can do for health care research and how to do it. Journal of Health Economics, 26, 171–189. DOI: 10.1016/j.jhealeco.2006.04.002.

Fox J (2005) The R Commander: A Basic Statistics Graphical User Interface to R. Journal of Statistical Software, 14(9): 1–42. DOI: 10.18637/jss.v014.i09.

Fox J (2017) Using the R Commander: A Point-and-Click Interface for R. Chapman and Hall/CRC.

Fox J, Bouchet-Valat M (2021) Rcmdr: R Commander. R package version 2.7-2. https://CRAN.R-project.org/package=Rcmdr.

Groemping U (2018) R Package DoE.base for Factorial Experiments. Journal of Statistical Software, 85(5), 1–41. DOI: 10.18637/jss.v085.i05.

Louviere JJ, Flynn TN, Marley AAJ (2015) Best-Worst Scaling: Theory, Methods and Applications. Cambridge University Press. DOI: 10.1017/CBO9781107337855.

Therneau T (2022) survival: Survival Analysis. R package version 3.3-1. 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.BWS2)
}

Calculate BWS2 Scores

Description

Calculate various BW scores for each respondent from the data set for BWS2 analysis.

Details

This dialog box calculates various BW scores for each respondent from the data set for BWS2 analysis created in the ‘Create Data Set for BWS2 Analysis’ dialog box and then stores them as a data frame using the function bws2.count in support.BWS2. This dialog box is activated if the data set for BWS2 analysis is selected as the active data set. For details on the results of this dialog box, refer to help for function bws2.count.

GUI elements of this dialog box are as follows.


Draw Distributions of BWS2 Scores

Description

Draw distributions of the BW scores by level.

Details

This dialog box draws distributions (bar plots) of the BW scores by level by using the function barplot.bws2.count (barplot for S3 class ‘bws2.count’). This dialog box is activated if the data frame containing BW scores created in the ‘Calculate BWS2 Scores’ dialog box is selected as the active data set. For details on the results of this dialog box, refer to help for bws2.count.

GUI elements of this dialog box are as follows.


Create Data Set for BWS2 Analysis

Description

Create a data set for BWS2 analysis combining the choice sets and data set containing responses to BWS2 questions.

Details

This dialog box uses the function bws2.dataset in support.BWS2 to create a data set for BWS2 analysis combining the choice sets designed in the ‘Design Choice Set for BWS2’ dialog box and a data set containing responses to BWS2 questions. For details on the results of this dialog box, refer to help for the function bws2.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 BWS2

Description

Design choice sets for BWS2 with an orthogonal design.

Details

This dialog box designs choice sets (profiles) for BWS2 with an orthogonal design using the function oa.design in DoE.base.

GUI elements of this dialog box are as follows.


Fit Model to BWS2 Data

Description

Fit a model to BWS2 data.

Details

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

GUI elements of this dialog box are as follows.


Display BWS2 Questions

Description

Display a series questions for BWS2.

Details

This dialog box displays a series of questions for BWS2 according to the profiles designed in the ‘Design Choice Sets for BWS2’ dialog box using the function bws2.questionnaire in support.BWS2. For details on the results of this dialog box, refer to help for bws2.questionnaire.

GUI elements of this dialog box are as follows.


Collect Responses to BWS2 Questions

Description

Collect user's responses to BWS2 questions.

Details

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

The first dialog box (‘Set Options for BWS2 Response Collection’) sets two 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 BWS2 Questions’) sequentially opens to collect the user's responses to BWS2 questions. In each dialog box, levels designed in the ‘Design Choice Sets for BWS2’ dialog box are presented. The user is asked to select their best and worst levels 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 BWS2 question.

When all user responses to BWS2 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.

mirror server hosted at Truenetwork, Russian Federation.