Skip to main content
EDSL is an open-source library for simulating surveys, experiments and other research with AI agents and large language models. Before running the code below, please ensure that you have installed the EDSL library and either activated remote inference from your Coop account or stored API keys for the language models that you want to use with EDSL. Please also see our documentation page for tips and tutorials on getting started using EDSL. Thank you to Sophia Kazinnik for this idea and helpful suggestions!

Importing the tool

from edsl import QuestionLinearScale, Scenario, ScenarioList, Agent, AgentList, Survey, Model

Selecting a model

See a list of available models at the model pricing and performance page
# Model.available()
Here we select a model to use
m = Model("gpt-4o")
m
LanguageModel
keyvalue
0modelgpt-4o
1parameters:temperature0.500000
2parameters:max_tokens1000
3parameters:top_p1
4parameters:frequency_penalty0
5parameters:presence_penalty0
6parameters:logprobsFalse
7parameters:top_logprobs3
8inference_serviceopenai

Creating some contexts for our survey

Here we identify some example contexts to use in administering our survey
respondent_ages = [
    "You are a teenager (13-19 years old).",
    "You are college age (20-24 years old).",
    "You are a young adult (25-39 years old).",
    "You are middle-aged (40-59 years old).",
    "You are a senior citizen (60 or more years old).",
]

survey_contexts = [
    "",
    "You are answering an online survey.",
    "You are being interviewed by a researcher.",
    "You are participating in a focus group of peers.",
    "You are participating in a focus group of people of all ages and backgrounds.",
]

Adding contexts to question texts

We can apply contexts by creating versions of our questions where each context is inserted directly into the question texts as a Scenario of the question
q_exercise = QuestionLinearScale(
    question_name="exercise",
    question_text="How many times do you typically exercise each week? ({{ scenario.age }} {{ scenario.context }})",
    question_options=[0, 1, 2, 3, 4, 5, 6, 7],
)

q_dessert = QuestionLinearScale(
    question_name="dessert",
    question_text="How many times do you typically eat dessert each week?  ({{ scenario.age }} {{ scenario.context }})",
    question_options=[0, 1, 2, 3, 4, 5, 6, 7],
)

survey = Survey(questions = [q_exercise, q_dessert])
scenarios = ScenarioList(
    Scenario({"age": a, "context": c}) for a in respondent_ages for c in survey_contexts
)
results = survey.by(scenarios).by(m).run()
results.select("age", "context", "exercise", "dessert")
scenario.agescenario.contextanswer.exerciseanswer.dessert
0You are a teenager (13-19 years old).nan33
1You are a teenager (13-19 years old).You are answering an online survey.43
2You are a teenager (13-19 years old).You are being interviewed by a researcher.43
3You are a teenager (13-19 years old).You are participating in a focus group of peers.33
4You are a teenager (13-19 years old).You are participating in a focus group of people of all ages and backgrounds.43
5You are college age (20-24 years old).nan33
6You are college age (20-24 years old).You are answering an online survey.33
7You are college age (20-24 years old).You are being interviewed by a researcher.33
8You are college age (20-24 years old).You are participating in a focus group of peers.33
9You are college age (20-24 years old).You are participating in a focus group of people of all ages and backgrounds.43
10You are a young adult (25-39 years old).nan33
11You are a young adult (25-39 years old).You are answering an online survey.33
12You are a young adult (25-39 years old).You are being interviewed by a researcher.43
13You are a young adult (25-39 years old).You are participating in a focus group of peers.33
14You are a young adult (25-39 years old).You are participating in a focus group of people of all ages and backgrounds.43
15You are middle-aged (40-59 years old).nan33
16You are middle-aged (40-59 years old).You are answering an online survey.32
17You are middle-aged (40-59 years old).You are being interviewed by a researcher.33
18You are middle-aged (40-59 years old).You are participating in a focus group of peers.32
19You are middle-aged (40-59 years old).You are participating in a focus group of people of all ages and backgrounds.33
20You are a senior citizen (60 or more years old).nan33
21You are a senior citizen (60 or more years old).You are answering an online survey.32
22You are a senior citizen (60 or more years old).You are being interviewed by a researcher.32
23You are a senior citizen (60 or more years old).You are participating in a focus group of peers.32
24You are a senior citizen (60 or more years old).You are participating in a focus group of people of all ages and backgrounds.33

Adding context to agent traits

Another method is to specify agent traits and survey contexts via Agent traits instead of the question texts
q_exercise = QuestionLinearScale(
    question_name="exercise",
    question_text="How many times do you exercise each week?",
    question_options=[0, 1, 2, 3, 4, 5, 6, 7],
)

q_dessert = QuestionLinearScale(
    question_name="dessert",
    question_text="How many times do you eat dessert each week?",
    question_options=[0, 1, 2, 3, 4, 5, 6, 7],
)

survey = Survey([q_exercise, q_dessert])
agents = AgentList(
    Agent(traits={"age": a, "context": c})
    for a in respondent_ages
    for c in survey_contexts
)
results = survey.by(agents).by(m).run()
results.select("age", "context", "exercise", "dessert")
agent.ageagent.contextanswer.exerciseanswer.dessert
0You are a teenager (13-19 years old).nan33
1You are a teenager (13-19 years old).You are answering an online survey.33
2You are a teenager (13-19 years old).You are being interviewed by a researcher.33
3You are a teenager (13-19 years old).You are participating in a focus group of peers.33
4You are a teenager (13-19 years old).You are participating in a focus group of people of all ages and backgrounds.33
5You are college age (20-24 years old).nan33
6You are college age (20-24 years old).You are answering an online survey.33
7You are college age (20-24 years old).You are being interviewed by a researcher.33
8You are college age (20-24 years old).You are participating in a focus group of peers.33
9You are college age (20-24 years old).You are participating in a focus group of people of all ages and backgrounds.43
10You are a young adult (25-39 years old).nan43
11You are a young adult (25-39 years old).You are answering an online survey.33
12You are a young adult (25-39 years old).You are being interviewed by a researcher.43
13You are a young adult (25-39 years old).You are participating in a focus group of peers.43
14You are a young adult (25-39 years old).You are participating in a focus group of people of all ages and backgrounds.43
15You are middle-aged (40-59 years old).nan33
16You are middle-aged (40-59 years old).You are answering an online survey.33
17You are middle-aged (40-59 years old).You are being interviewed by a researcher.33
18You are middle-aged (40-59 years old).You are participating in a focus group of peers.43
19You are middle-aged (40-59 years old).You are participating in a focus group of people of all ages and backgrounds.32
20You are a senior citizen (60 or more years old).nan33
21You are a senior citizen (60 or more years old).You are answering an online survey.33
22You are a senior citizen (60 or more years old).You are being interviewed by a researcher.32
23You are a senior citizen (60 or more years old).You are participating in a focus group of peers.23
24You are a senior citizen (60 or more years old).You are participating in a focus group of people of all ages and backgrounds.33

Adding contexts to question texts and agent traits

Here we use both Agent traits and Scenario contexts in the question texts:
q_exercise = QuestionLinearScale(
    question_name="exercise",
    question_text="How many times do you exercise each week? ({{ scenario.context }})",
    question_options=[0, 1, 2, 3, 4, 5, 6, 7],
)

q_dessert = QuestionLinearScale(
    question_name="dessert",
    question_text="How many times do you eat dessert each week? ({{ scenario.context }})",
    question_options=[0, 1, 2, 3, 4, 5, 6, 7],
)

survey = Survey([q_exercise, q_dessert])
scenarios = ScenarioList.from_list("context", survey_contexts)
agents = AgentList(
    Agent(traits={"age": a}) for a in respondent_ages
)
results = survey.by(scenarios).by(agents).by(m).run()
results.select("age", "context", "exercise", "dessert")
agent.agescenario.contextanswer.exerciseanswer.dessert
0You are a teenager (13-19 years old).nan33
1You are a teenager (13-19 years old).You are answering an online survey.33
2You are a teenager (13-19 years old).You are being interviewed by a researcher.43
3You are a teenager (13-19 years old).You are participating in a focus group of peers.33
4You are a teenager (13-19 years old).You are participating in a focus group of people of all ages and backgrounds.33
5You are college age (20-24 years old).nan43
6You are college age (20-24 years old).You are answering an online survey.33
7You are college age (20-24 years old).You are being interviewed by a researcher.43
8You are college age (20-24 years old).You are participating in a focus group of peers.33
9You are college age (20-24 years old).You are participating in a focus group of people of all ages and backgrounds.43
10You are a young adult (25-39 years old).nan52
11You are a young adult (25-39 years old).You are answering an online survey.43
12You are a young adult (25-39 years old).You are being interviewed by a researcher.43
13You are a young adult (25-39 years old).You are participating in a focus group of peers.43
14You are a young adult (25-39 years old).You are participating in a focus group of people of all ages and backgrounds.43
15You are middle-aged (40-59 years old).nan43
16You are middle-aged (40-59 years old).You are answering an online survey.43
17You are middle-aged (40-59 years old).You are being interviewed by a researcher.53
18You are middle-aged (40-59 years old).You are participating in a focus group of peers.33
19You are middle-aged (40-59 years old).You are participating in a focus group of people of all ages and backgrounds.33
20You are a senior citizen (60 or more years old).nan33
21You are a senior citizen (60 or more years old).You are answering an online survey.33
22You are a senior citizen (60 or more years old).You are being interviewed by a researcher.33
23You are a senior citizen (60 or more years old).You are participating in a focus group of peers.33
24You are a senior citizen (60 or more years old).You are participating in a focus group of people of all ages and backgrounds.33

Compare prompts

We can compare the prompts that we used which are accessible as fields of the results:
results.columns
0
0agent.age
1agent.agent_index
2agent.agent_instruction
3agent.agent_name
4answer.dessert
5answer.exercise
6cache_keys.dessert_cache_key
7cache_keys.exercise_cache_key
8cache_used.dessert_cache_used
9cache_used.exercise_cache_used
10comment.dessert_comment
11comment.exercise_comment
12generated_tokens.dessert_generated_tokens
13generated_tokens.exercise_generated_tokens
14iteration.iteration
15model.frequency_penalty
16model.inference_service
17model.logprobs
18model.max_tokens
19model.model
20model.model_index
21model.presence_penalty
22model.temperature
23model.top_logprobs
24model.top_p
25prompt.dessert_system_prompt
26prompt.dessert_user_prompt
27prompt.exercise_system_prompt
28prompt.exercise_user_prompt
29question_options.dessert_question_options
30question_options.exercise_question_options
31question_text.dessert_question_text
32question_text.exercise_question_text
33question_type.dessert_question_type
34question_type.exercise_question_type
35raw_model_response.dessert_cost
36raw_model_response.dessert_one_usd_buys
37raw_model_response.dessert_raw_model_response
38raw_model_response.exercise_cost
39raw_model_response.exercise_one_usd_buys
40raw_model_response.exercise_raw_model_response
41scenario.context
42scenario.scenario_index
results.select("prompt.*")
prompt.exercise_system_promptprompt.exercise_user_promptprompt.dessert_system_promptprompt.dessert_user_prompt
0You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a teenager (13-19 years old).'}How many times do you exercise each week? () 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a teenager (13-19 years old).'}How many times do you eat dessert each week? () 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
1You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a teenager (13-19 years old).'}How many times do you exercise each week? (You are answering an online survey.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a teenager (13-19 years old).'}How many times do you eat dessert each week? (You are answering an online survey.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
2You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a teenager (13-19 years old).'}How many times do you exercise each week? (You are being interviewed by a researcher.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a teenager (13-19 years old).'}How many times do you eat dessert each week? (You are being interviewed by a researcher.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
3You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a teenager (13-19 years old).'}How many times do you exercise each week? (You are participating in a focus group of peers.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a teenager (13-19 years old).'}How many times do you eat dessert each week? (You are participating in a focus group of peers.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
4You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a teenager (13-19 years old).'}How many times do you exercise each week? (You are participating in a focus group of people of all ages and backgrounds.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a teenager (13-19 years old).'}How many times do you eat dessert each week? (You are participating in a focus group of people of all ages and backgrounds.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
5You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are college age (20-24 years old).'}How many times do you exercise each week? () 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are college age (20-24 years old).'}How many times do you eat dessert each week? () 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
6You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are college age (20-24 years old).'}How many times do you exercise each week? (You are answering an online survey.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are college age (20-24 years old).'}How many times do you eat dessert each week? (You are answering an online survey.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
7You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are college age (20-24 years old).'}How many times do you exercise each week? (You are being interviewed by a researcher.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are college age (20-24 years old).'}How many times do you eat dessert each week? (You are being interviewed by a researcher.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
8You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are college age (20-24 years old).'}How many times do you exercise each week? (You are participating in a focus group of peers.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are college age (20-24 years old).'}How many times do you eat dessert each week? (You are participating in a focus group of peers.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
9You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are college age (20-24 years old).'}How many times do you exercise each week? (You are participating in a focus group of people of all ages and backgrounds.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are college age (20-24 years old).'}How many times do you eat dessert each week? (You are participating in a focus group of people of all ages and backgrounds.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
10You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a young adult (25-39 years old).'}How many times do you exercise each week? () 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a young adult (25-39 years old).'}How many times do you eat dessert each week? () 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
11You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a young adult (25-39 years old).'}How many times do you exercise each week? (You are answering an online survey.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a young adult (25-39 years old).'}How many times do you eat dessert each week? (You are answering an online survey.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
12You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a young adult (25-39 years old).'}How many times do you exercise each week? (You are being interviewed by a researcher.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a young adult (25-39 years old).'}How many times do you eat dessert each week? (You are being interviewed by a researcher.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
13You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a young adult (25-39 years old).'}How many times do you exercise each week? (You are participating in a focus group of peers.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a young adult (25-39 years old).'}How many times do you eat dessert each week? (You are participating in a focus group of peers.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
14You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a young adult (25-39 years old).'}How many times do you exercise each week? (You are participating in a focus group of people of all ages and backgrounds.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a young adult (25-39 years old).'}How many times do you eat dessert each week? (You are participating in a focus group of people of all ages and backgrounds.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
15You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are middle-aged (40-59 years old).'}How many times do you exercise each week? () 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are middle-aged (40-59 years old).'}How many times do you eat dessert each week? () 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
16You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are middle-aged (40-59 years old).'}How many times do you exercise each week? (You are answering an online survey.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are middle-aged (40-59 years old).'}How many times do you eat dessert each week? (You are answering an online survey.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
17You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are middle-aged (40-59 years old).'}How many times do you exercise each week? (You are being interviewed by a researcher.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are middle-aged (40-59 years old).'}How many times do you eat dessert each week? (You are being interviewed by a researcher.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
18You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are middle-aged (40-59 years old).'}How many times do you exercise each week? (You are participating in a focus group of peers.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are middle-aged (40-59 years old).'}How many times do you eat dessert each week? (You are participating in a focus group of peers.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
19You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are middle-aged (40-59 years old).'}How many times do you exercise each week? (You are participating in a focus group of people of all ages and backgrounds.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are middle-aged (40-59 years old).'}How many times do you eat dessert each week? (You are participating in a focus group of people of all ages and backgrounds.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
20You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a senior citizen (60 or more years old).'}How many times do you exercise each week? () 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a senior citizen (60 or more years old).'}How many times do you eat dessert each week? () 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
21You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a senior citizen (60 or more years old).'}How many times do you exercise each week? (You are answering an online survey.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a senior citizen (60 or more years old).'}How many times do you eat dessert each week? (You are answering an online survey.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
22You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a senior citizen (60 or more years old).'}How many times do you exercise each week? (You are being interviewed by a researcher.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a senior citizen (60 or more years old).'}How many times do you eat dessert each week? (You are being interviewed by a researcher.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
23You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a senior citizen (60 or more years old).'}How many times do you exercise each week? (You are participating in a focus group of peers.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a senior citizen (60 or more years old).'}How many times do you eat dessert each week? (You are participating in a focus group of peers.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
24You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a senior citizen (60 or more years old).'}How many times do you exercise each week? (You are participating in a focus group of people of all ages and backgrounds.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.You are answering questions as if you were a human. Do not break character.Your traits: {'age': 'You are a senior citizen (60 or more years old).'}How many times do you eat dessert each week? (You are participating in a focus group of people of all ages and backgrounds.) 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : Only 1 option may be selected. Respond only with the code corresponding to one of the options. E.g., “1” or “5” by itself. After the answer, you can put a comment explaining why you chose that option on the next line.
I