Description Usage Arguments Examples
View source: R/biasdetection_functions.R
This function detects the responses employing lexicographic response styles, where the respondents choose the option for stated preference scenarios based on the best attribute level.
1 2 3 4 5 6 7 8 9 | lrs_general_function(
csv_file,
total_scenarios,
num_blocks,
scenarios,
alternatives,
attribute,
attribute_short
)
|
csv_file |
The file we want to process |
total_scenarios |
A list containing all the Stated Preference scenarios |
num_blocks |
The amount of blocks on which the scenarios will be distributed |
scenarios |
A list containing the relevant Stated Preference scenarios for the specific attribute of Lexicographic Response Styles |
alternatives |
A list containing the alternatives for the Stated Preference experiment |
attribute |
The attribute chosen for Lexicographic Response Styles |
attribute_short |
The short form of the attribute name (for table names) lrs_general_function() |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Not run:
lrs_general_function(file.csv, list(list("S1", "S2"),
list("S3", "S4"),
list("S5", "S6"),
list("S7", "S8")),
4,
list(list("S1"),
list("S4"),
list("S6"),
list("S7")),
"Cheapest_Cost",
"CC")
lrs_general_function(file.csv, list(list("S1", "S2", "S3", "S4"),
list("S5", "S6", "S7", "S8")),
2,
list(list("S1", "S3"),
list("S7", "S8")),
"Fastest_Travel_Time",
"FTT")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.