dceDataset: Create Data Set for DCE Analysis

View source: R/RcmdrPlugin.DCE.R

dceDatasetR Documentation

Create Data Set for DCE Analysis

Description

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

Details

This dialog box uses the function ce.dataset in support.CEs to create a data set for DCE analysis from the choice sets designed in the ‘Design Choice Sets for DCE’ dialog box and a data set containing responses to DCE questions. This dialog box is activated if a data frame is selected as the active data set. For details on the results of this dialog box, refer to help for the function ce.dataset.

GUI elements of this dialog box are as follows.

  • Name for data set: An R object name into which a data set generated using this dialog box is stored. The default name ‘DCEdata’ can be changed following R's rules for naming objects. If changed, you should take note of the new object name, which will be used later.

  • Save to file: A check box for saving the resultant data set to an external file in RDA format (.rda). If necessary, check this box.

  • Design: An R object name containing DCE choice sets generated in the ‘Design Choice Sets for DCE’ dialog box. The default name ‘DCEdesign’ is displayed automatically. The correct name should be entered if the name for design (DCEdesign) was changed in the dialog box for DCE design.

  • Responses to DCE questions: Names of variables containing responses to DCE questions in the active data set. Variable names are separated by commas (e.g., q1, q2, q3, ...).

  • Opt-out option: A check box for an opt-out option. When the opt-out option was used in the DCE questions, check this box.


RcmdrPlugin.DCE documentation built on June 14, 2025, 9:07 a.m.