Skip to contents

Generate an xlsform used to perform consultation for conjoint analysis.

Usage

conjoint_prepare(
  opts,
  language = "English (en)",
  form_title = "Conjoint Review",
  id_string = "conjoint_rev",
  outdir = "data-raw",
  outfile = "conjoint_form.xlsx"
)

Arguments

opts

a dataframe containing the options to compare

language

what language to use in case of multiple language

form_title

Actividad #2: Calificación de perfiles de vulnerabilidad

id_string

vulnerability_rating

outdir

directory within project where to put the file

outfile

path of the file...

Value

a file in xlsform format

Details

The options that will be compared are the different levels of the section of indicators that should have been filtered through the quadratic voting stage.

One level can actually match multiple response options from the screening questionnaire

Examples



# indicator <-  system.file("data-demo/indicator_criteria.xlsx",
#                 package = "VulnerabilityScoreCalibration")
# opts <- read_excel("cja_opts_SAL.xlsx")
# 
# conjoint_prepare( opts = opts, 
#                   language = "Spanish (es)",
#                   form_title = "Actividad #2: Calificación de perfiles de 
#                            vulnerabilidad - El Salvador, 23 de marzo, 2023",
#                   id_string = "vulnerability_rating",
#                   outdir = "", 
#                   outfile = "form.xlsx" )