Data and code from: Multilingual evaluation of a large language model-based primary care chatbot
Data files
Oct 21, 2026 version files 148.75 KB
-
fullData.csv
17.23 KB
-
PCP-Bot_Qualitative.xlsx.zip
28.17 KB
-
PCP-Bot-Translator-Study-Cases-main.zip
28.35 KB
-
PCPBot_Analysis_stats_manu_rev_Subjective.R
28.71 KB
-
PCPBot_Translator_Study.Rmd
24.27 KB
-
README.md
22.03 KB
Abstract
Large language model (LLM) chatbots show promise for pre-visit planning, but their English-centric development raises equity concerns for multilingual deployment. We evaluated the multilingual capabilities of PCP-Bot, a GPT-4o-based pre-visit chatbot, across English, Mandarin Chinese, Spanish, and Hindi. In this mixed-methods study, 31 bilingual participants (11 Mandarin, 10 Spanish, 10 Hindi) role-played as patients across five synthetic primary care cases, each first in English, then their second language. Participants completed validated instruments (BUS-11, NASA-TLX, HCTS, TAM-PEU), an adapted summary quality rubric (fluency, adequacy, meaning, severity), and open-ended feedback. English interactions scored higher than non-English on usability (difference = 0.15), conversation quality (0.62), and summary quality (0.25; all p < 0.001). Usability and conversation quality gaps varied by language (both p < 0.01), driven by Spanish and Hindi; Mandarin Chinese showed neither (p = 0.087). Trust, workload, and ease-of-use remained consistent across languages. Participants described PCP-Bot as natural and accurate overall but reported repetition, transcription errors, and more frequent breakdowns in non-English interactions. Discussion: Multilingual capability in pre-visit workflows appear feasible for LLMs under controlled conditions in the four high-resource languages evaluated, with high absolute performance in each. Disparities were language-dependent: conversational performance declined most for Spanish and Hindi, while summary quality showed a small, uniform English advantage, suggesting addressable language-specific weaknesses rather than a fixed limitation of English-developed systems. Conclusion: LLMs can support multilingual pre-visit interactions, but performance varies by language. Per-language validation and further testing are needed prior to clinical rollout.
Dataset DOI: 10.5061/dryad.bcc2fqzw2
Description of the data and file structure
This dataset was collected from bilingual volunteers who tested PCP-Bot, a multilingual clinical chatbot, and annotated the pre-visit summaries it generated. Participants were recruited through a mass email from the University of Pennsylvania Language Center and contacted the study team directly for eligibility screening. Eligible participants self-reported fluency in English and in one of three non-English languages: Mandarin Chinese, Hindi, or Spanish. The recruitment target was 30 participants, 10 per non-English language.
Each participant simulated patient interactions with PCP-Bot using five synthetic clinical cases presented in random order. They completed each case first in English and then in their second language, and annotated the pre-visit summaries PCP-Bot produced.
Files and variables
File: PCP-Bot-Translator-Study-Cases-main.zip
Description: Zipped .txt files of all the cases used for the PCP-Bot Multilingual Project.
File: PCP-Bot_Qualitative.xlsx.zip
Description: Zipped Excel workbook with participants’ de-identified free-text responses from the PCP-Bot study (N = 31; one row per participant, in the same order as fullData.csv). The first two rows are headers: row 1 has short column codes and row 2 has the full survey question. The columns are:
- Eval language, Primary language: participant language group, as in
fullData.csv. - C1_E to C5_E and C1_NE to C5_NE: per-case answers to “During the conversation, were there any questions or concerns that you had a hard time bringing up/communicating?” for the English (E) and non-English (NE) conversation of each clinical case (C1–C5).
- C1 to C5: per-case answers to “From both conversations, did you notice any differences in communication quality?”
- Two end-of-study columns, both labeled OVERALL: additional feedback or expectations for AI-powered clinical chatbots, and any difficulties communicating with PCP-Bot.
“N/A” or “NA” means the participant reported no issue. These responses informed the qualitative themes reported in the manuscript.
File: fullData.csv
Description: De-identified, participant-level dataset from the PCP-Bot study. There is one row per participant (N = 31 bilingual adults; 155 variables). Each participant used PCP-Bot, a GPT-4o–based pre-visit clinical chatbot, on five synthetic clinical cases (C1–C5). Each case was completed twice: once in English ("Eng") and once in the participant's second language ("NonEng": Mandarin Chinese, Spanish, or Hindi, given in "Eval language"). The file contains:
- self-rated language proficiency (modified LEAP-Q)
- per-case ratings of conversation quality, visit-summary quality, and chatbot usability (BUS-11)
- per-case hallucination flags
- background use of health technology
- end-of-study ratings of ease of use (TAM-PEU), trust (HCTS), and workload (NASA-TLX)
Blank cells mean not applicable or no response. Variable prefixes C1–C5 identify the clinical case. The suffix _Eng or _NonEng identifies the language in which that case was completed.
Variables
- Eval language: Non-English language in which the participant completed the five cases (Mandarin Chinese, Spanish, or Hindi).
- Primary language: Language the participant designated as their primary language (English, Mandarin Chinese, Spanish, or Hindi).
- English speaking proficiency: Self-rated English speaking proficiency, 0–10 (modified LEAP-Q; 10 = perfect). Set to 10 for participants whose primary language is English.
- English understanding proficiency: Self-rated English listening/understanding proficiency, 0–10 (modified LEAP-Q; 10 = perfect). Set to 10 for participants whose primary language is English.
- English reading proficiency: Self-rated English reading proficiency, 0–10 (modified LEAP-Q; 10 = perfect). Set to 10 for participants whose primary language is English.
- Mandarin Chinese speaking proficiency: Self-rated Mandarin Chinese speaking proficiency, 0–10 (modified LEAP-Q). Set to 10 if Mandarin Chinese is the primary language; blank if Eval language is not Mandarin Chinese.
- Mandarin Chinese understanding proficiency: Self-rated Mandarin Chinese understanding proficiency, 0–10 (modified LEAP-Q). Set to 10 if Mandarin Chinese is the primary language; blank if Eval language is not Mandarin Chinese.
- Mandarin Chinese reading proficiency: Self-rated Mandarin Chinese reading proficiency, 0–10 (modified LEAP-Q). Set to 10 if Mandarin Chinese is the primary language; blank if Eval language is not Mandarin Chinese.
- Spanish speaking proficiency: Self-rated Spanish speaking proficiency, 0–10 (modified LEAP-Q). Set to 10 if Spanish is the primary language; blank if Eval language is not Spanish.
- Spanish understanding proficiency: Self-rated Spanish understanding proficiency, 0–10 (modified LEAP-Q). Set to 10 if Spanish is the primary language; blank if Eval language is not Spanish.
- Spanish reading proficiency: Self-rated Spanish reading proficiency, 0–10 (modified LEAP-Q). Set to 10 if Spanish is the primary language; blank if Eval language is not Spanish.
- Hindi speaking proficiency: Self-rated Hindi speaking proficiency, 0–10 (modified LEAP-Q). Set to 10 if Hindi is the primary language; blank if Eval language is not Hindi.
- Hindi understanding proficiency: Self-rated Hindi understanding proficiency, 0–10 (modified LEAP-Q). Set to 10 if Hindi is the primary language; blank if Eval language is not Hindi.
- Hindi reading proficiency: Self-rated Hindi reading proficiency, 0–10 (modified LEAP-Q). Set to 10 if Hindi is the primary language; blank if Eval language is not Hindi.
- C1_CommQ_Eng: Participant rating of the overall communication quality of the Case 1 conversation in English, 1–5 (higher = better).
- C2_CommQ_Eng: Participant rating of the overall communication quality of the Case 2 conversation in English, 1–5 (higher = better).
- C3_CommQ_NonEng: Participant rating of the overall communication quality of the Case 3 conversation in the Eval language, 1–5 (higher = better).
- C4_CommQ_NonEng: Participant rating of the overall communication quality of the Case 4 conversation in the Eval language, 1–5 (higher = better).
- C5_CommQ_NonEng: Participant rating of the overall communication quality of the Case 5 conversation in the Eval language, 1–5 (higher = better).
- C1_SumFluency_Eng_v2: Fluency of the English visit summary produced after the Case 1 English conversation, 1–5 (higher = better; "N/A" scored as 5). Blank = summary not rated.
- C1_SumAdequacy_Eng_v2: Adequacy (completeness of the information captured) of the English visit summary produced after the Case 1 English conversation, 1–5 (higher = better; "N/A" scored as 5). Blank = summary not rated.
- C1_SumMeaning_Eng_v2: Meaning (faithfulness to what was said in the conversation) of the English visit summary produced after the Case 1 English conversation, 1–5 (higher = better; "N/A" scored as 5). Blank = summary not rated.
- C1_SumSeverity_Eng_v2: Severity of the impact of any errors in the English visit summary produced after the Case 1 English conversation. The original 6-option item (1–5 plus "N/A") is rescaled to 1–5 in steps of 0.8: 1 = harmful/highly misleading, 5 = no meaningful error or an error with no effect. Higher = less severe. Blank = summary not rated.
- C1_SumFluency_NonEng_v2: Fluency of the English visit summary requested at the end of the Case 1 Eval-language conversation, 1–5 (higher = better; "N/A" scored as 5). Blank = summary not rated.
- C1_SumAdequacy_NonEng_v2: Adequacy of the English visit summary requested at the end of the Case 1 Eval-language conversation, 1–5 (higher = better; "N/A" scored as 5). Blank = summary not rated.
- C1_SumMeaning_NonEng_v2: Meaning of the English visit summary requested at the end of the Case 1 Eval-language conversation, 1–5 (higher = better; "N/A" scored as 5). Blank = summary not rated.
- C1_SumSeverity_NonEng_v2: Severity of error impact in the English visit summary requested at the end of the Case 1 Eval-language conversation, rescaled 1–5 (higher = less severe; see C1_SumSeverity_Eng_v2). Blank = summary not rated.
- C2_SumFluency_Eng_v2: As C1_SumFluency_Eng_v2, for Case 2.
- C2_SumAdequacy_Eng_v2: As C1_SumAdequacy_Eng_v2, for Case 2.
- C2_SumMeaning_Eng_v2: As C1_SumMeaning_Eng_v2, for Case 2.
- C2_SumSeverity_Eng_v2: As C1_SumSeverity_Eng_v2, for Case 2.
- C2_SumFluency_NonEng_v2: As C1_SumFluency_NonEng_v2, for Case 2.
- C2_SumAdequacy_NonEng_v2: As C1_SumAdequacy_NonEng_v2, for Case 2.
- C2_SumMeaning_NonEng_v2: As C1_SumMeaning_NonEng_v2, for Case 2.
- C2_SumSeverity_NonEng_v2: As C1_SumSeverity_NonEng_v2, for Case 2.
- C3_SumFluency_Eng_v2: As C1_SumFluency_Eng_v2, for Case 3.
- C3_SumAdequacy_Eng_v2: As C1_SumAdequacy_Eng_v2, for Case 3.
- C3_SumMeaning_Eng_v2: As C1_SumMeaning_Eng_v2, for Case 3.
- C3_SumSeverity_Eng_v2: As C1_SumSeverity_Eng_v2, for Case 3.
- C3_SumFluency_NonEng_v2: As C1_SumFluency_NonEng_v2, for Case 3.
- C3_SumAdequacy_NonEng_v2: As C1_SumAdequacy_NonEng_v2, for Case 3.
- C3_SumMeaning_NonEng_v2: As C1_SumMeaning_NonEng_v2, for Case 3.
- C3_SumSeverity_NonEng_v2: As C1_SumSeverity_NonEng_v2, for Case 3.
- C4_SumFluency_Eng_v2: As C1_SumFluency_Eng_v2, for Case 4.
- C4_SumAdequacy_Eng_v2: As C1_SumAdequacy_Eng_v2, for Case 4.
- C4_SumMeaning_Eng_v2: As C1_SumMeaning_Eng_v2, for Case 4.
- C4_SumSeverity_Eng_v2: As C1_SumSeverity_Eng_v2, for Case 4.
- C4_SumFluency_NonEng_v2: As C1_SumFluency_NonEng_v2, for Case 4.
- C4_SumAdequacy_NonEng_v2: As C1_SumAdequacy_NonEng_v2, for Case 4.
- C4_SumMeaning_NonEng_v2: As C1_SumMeaning_NonEng_v2, for Case 4.
- C4_SumSeverity_NonEng_v2: As C1_SumSeverity_NonEng_v2, for Case 4.
- C5_SumFluency_Eng_v2: As C1_SumFluency_Eng_v2, for Case 5.
- C5_SumAdequacy_Eng_v2: As C1_SumAdequacy_Eng_v2, for Case 5.
- C5_SumMeaning_Eng_v2: As C1_SumMeaning_Eng_v2, for Case 5.
- C5_SumSeverity_Eng_v2: As C1_SumSeverity_Eng_v2, for Case 5.
- C5_SumFluency_NonEng_v2: As C1_SumFluency_NonEng_v2, for Case 5.
- C5_SumAdequacy_NonEng_v2: As C1_SumAdequacy_NonEng_v2, for Case 5.
- C5_SumMeaning_NonEng_v2: As C1_SumMeaning_NonEng_v2, for Case 5.
- C5_SumSeverity_NonEng_v2: As C1_SumSeverity_NonEng_v2, for Case 5.
- C1_BUS11_Accessibility_Eng: BUS-11 factor "Perceived accessibility to chatbot functions" (mean of 2 items) for the Case 1 English interaction, 1–5 (higher = better).
- C1_BUS11_FuncQ_Eng: BUS-11 factor "Perceived quality of chatbot functions" (mean of 3 items) for the Case 1 English interaction, 1–5 (higher = better).
- C1_BUS11_ConvoQ_Eng: BUS-11 factor "Perceived quality of conversation and information provided" (mean of 4 items) for the Case 1 English interaction, 1–5 (higher = better).
- C1_BUS11_PrivSec_Eng: BUS-11 factor "Perceived privacy and security" (1 item) for the Case 1 English interaction, 1–5 (higher = better).
- C1_BUS11_Responsiveness_Eng: BUS-11 factor "Time response" (1 item) for the Case 1 English interaction, 1–5 (higher = better).
- C1_BUS11Avg_Eng: Overall BUS-11 usability score for the Case 1 English interaction: unweighted mean of the five factor scores above, 1–5.
- C1_BUS11_Accessibility_NonEng: As C1_BUS11_Accessibility_Eng, for the Case 1 Eval-language interaction. (The BUS-11 questionnaire itself was administered in English.)
- C1_BUS11_FuncQ_NonEng: As C1_BUS11_FuncQ_Eng, for the Case 1 Eval-language interaction.
- C1_BUS11_ConvoQ_NonEng: As C1_BUS11_ConvoQ_Eng, for the Case 1 Eval-language interaction.
- C1_BUS11_PrivSec_NonEng: As C1_BUS11_PrivSec_Eng, for the Case 1 Eval-language interaction.
- C1_BUS11_Responsiveness_NonEng: As C1_BUS11_Responsiveness_Eng, for the Case 1 Eval-language interaction.
- C1_BUS11Avg_NonEng: As C1_BUS11Avg_Eng, for the Case 1 Eval-language interaction.
- C2_BUS11_Accessibility_Eng: As C1_BUS11_Accessibility_Eng, for Case 2.
- C2_BUS11_FuncQ_Eng: As C1_BUS11_FuncQ_Eng, for Case 2.
- C2_BUS11_ConvoQ_Eng: As C1_BUS11_ConvoQ_Eng, for Case 2.
- C2_BUS11_PrivSec_Eng: As C1_BUS11_PrivSec_Eng, for Case 2.
- C2_BUS11_Responsiveness_Eng: As C1_BUS11_Responsiveness_Eng, for Case 2.
- C2_BUS11Avg_Eng: As C1_BUS11Avg_Eng, for Case 2.
- C2_BUS11_Accessibility_NonEng: As C1_BUS11_Accessibility_NonEng, for Case 2.
- C2_BUS11_FuncQ_NonEng: As C1_BUS11_FuncQ_NonEng, for Case 2.
- C2_BUS11_ConvoQ_NonEng: As C1_BUS11_ConvoQ_NonEng, for Case 2.
- C2_BUS11_PrivSec_NonEng: As C1_BUS11_PrivSec_NonEng, for Case 2.
- C2_BUS11_Responsiveness_NonEng: As C1_BUS11_Responsiveness_NonEng, for Case 2.
- C2_BUS11Avg_NonEng: As C1_BUS11Avg_NonEng, for Case 2.
- C3_BUS11_Accessibility_Eng: As C1_BUS11_Accessibility_Eng, for Case 3.
- C3_BUS11_FuncQ_Eng: As C1_BUS11_FuncQ_Eng, for Case 3.
- C3_BUS11_ConvoQ_Eng: As C1_BUS11_ConvoQ_Eng, for Case 3.
- C3_BUS11_PrivSec_Eng: As C1_BUS11_PrivSec_Eng, for Case 3.
- C3_BUS11_Responsiveness_Eng: As C1_BUS11_Responsiveness_Eng, for Case 3.
- C3_BUS11Avg_Eng: As C1_BUS11Avg_Eng, for Case 3.
- C3_BUS11_Accessibility_NonEng: As C1_BUS11_Accessibility_NonEng, for Case 3.
- C3_BUS11_FuncQ_NonEng: As C1_BUS11_FuncQ_NonEng, for Case 3.
- C3_BUS11_ConvoQ_NonEng: As C1_BUS11_ConvoQ_NonEng, for Case 3.
- C3_BUS11_PrivSec_NonEng: As C1_BUS11_PrivSec_NonEng, for Case 3.
- C3_BUS11_Responsiveness_NonEng: As C1_BUS11_Responsiveness_NonEng, for Case 3.
- C3_BUS11Avg_NonEng: As C1_BUS11Avg_NonEng, for Case 3.
- C4_BUS11_Accessibility_Eng: As C1_BUS11_Accessibility_Eng, for Case 4.
- C4_BUS11_FuncQ_Eng: As C1_BUS11_FuncQ_Eng, for Case 4.
- C4_BUS11_ConvoQ_Eng: As C1_BUS11_ConvoQ_Eng, for Case 4.
- C4_BUS11_PrivSec_Eng: As C1_BUS11_PrivSec_Eng, for Case 4.
- C4_BUS11_Responsiveness_Eng: As C1_BUS11_Responsiveness_Eng, for Case 4.
- C4_BUS11Avg_Eng: As C1_BUS11Avg_Eng, for Case 4.
- C4_BUS11_Accessibility_NonEng: As C1_BUS11_Accessibility_NonEng, for Case 4.
- C4_BUS11_FuncQ_NonEng: As C1_BUS11_FuncQ_NonEng, for Case 4.
- C4_BUS11_ConvoQ_NonEng: As C1_BUS11_ConvoQ_NonEng, for Case 4.
- C4_BUS11_PrivSec_NonEng: As C1_BUS11_PrivSec_NonEng, for Case 4.
- C4_BUS11_Responsiveness_NonEng: As C1_BUS11_Responsiveness_NonEng, for Case 4.
- C4_BUS11Avg_NonEng: As C1_BUS11Avg_NonEng, for Case 4.
- C5_BUS11_Accessibility_Eng: As C1_BUS11_Accessibility_Eng, for Case 5.
- C5_BUS11_FuncQ_Eng: As C1_BUS11_FuncQ_Eng, for Case 5.
- C5_BUS11_ConvoQ_Eng: As C1_BUS11_ConvoQ_Eng, for Case 5.
- C5_BUS11_PrivSec_Eng: As C1_BUS11_PrivSec_Eng, for Case 5.
- C5_BUS11_Responsiveness_Eng: As C1_BUS11_Responsiveness_Eng, for Case 5.
- C5_BUS11Avg_Eng: As C1_BUS11Avg_Eng, for Case 5.
- C5_BUS11_Accessibility_NonEng: As C1_BUS11_Accessibility_NonEng, for Case 5.
- C5_BUS11_FuncQ_NonEng: As C1_BUS11_FuncQ_NonEng, for Case 5.
- C5_BUS11_ConvoQ_NonEng: As C1_BUS11_ConvoQ_NonEng, for Case 5.
- C5_BUS11_PrivSec_NonEng: As C1_BUS11_PrivSec_NonEng, for Case 5.
- C5_BUS11_Responsiveness_NonEng: As C1_BUS11_Responsiveness_NonEng, for Case 5.
- C5_BUS11Avg_NonEng: As C1_BUS11Avg_NonEng, for Case 5.
- C1_Halluc_Eng_bin: Hallucination flag for the Case 1 English interaction. 1 = hallucination identified; blank = none identified. No English hallucinations were recorded, so this column is empty.
- C1_Halluc_NonEng_bin: Hallucination flag for the Case 1 Eval-language interaction. 1 = hallucination identified; blank = none identified.
- C2_Halluc_Eng_bin: As C1_Halluc_Eng_bin, for Case 2 (empty).
- C2_Halluc_NonEng_bin: As C1_Halluc_NonEng_bin, for Case 2.
- C3_Halluc_Eng_bin: As C1_Halluc_Eng_bin, for Case 3 (empty).
- C3_Halluc_NonEng_bin: As C1_Halluc_NonEng_bin, for Case 3.
- C4_Halluc_Eng_bin: As C1_Halluc_Eng_bin, for Case 4 (empty).
- C4_Halluc_NonEng_bin: As C1_Halluc_NonEng_bin, for Case 4.
- C5_Halluc_Eng_bin: As C1_Halluc_Eng_bin, for Case 5 (empty).
- C5_Halluc_NonEng_bin: As C1_Halluc_NonEng_bin, for Case 5.
- health_visit_freq: How often the participant sees a healthcare professional per year. 1 = Never; 2 = Rarely (once or twice a year); 3 = Occasionally (three to five times a year); 4 = Frequently (six to ten times a year).
- health_app_freq: How often the participant used a health app in the past month. 1 = Never; 2 = Rarely (1–2 times); 3 = Sometimes (3–4 times). Higher response options were not selected by any participant.
- patient_portal_freq: How often the participant used a patient portal in the past month. 1 = Never; 2 = Rarely (1–2 times); 3 = Sometimes (3–4 times); 4 = [ADD LABEL, e.g., Often (5–8 times)] (not selected by any participant); 5 = Very often (more than 8 times).
- chatbot_use: Prior chatbot use: 1 = yes, 0 = no [CONFIRM WHETHER THIS IS ANY CHATBOT OR HEALTH CHATBOTS ONLY].
- TAM-PEU01: Technology Acceptance Model, Perceived Ease of Use, item 1. Rated 1–7 (1 = strongly disagree, 7 = strongly agree); higher = easier to use.
- TAM-PEU02: TAM Perceived Ease of Use, item 2, 1–7 (higher = easier to use).
- TAM-PEU03: TAM Perceived Ease of Use, item 3, 1–7 (higher = easier to use).
- TAM-PEU04: TAM Perceived Ease of Use, item 4, 1–7 (higher = easier to use).
- TAM-PEU05: TAM Perceived Ease of Use, item 5, 1–7 (higher = easier to use).
- TAM-PEU06: TAM Perceived Ease of Use, item 6, 1–7 (higher = easier to use).
- HCTS_RiskPerception: Human-Computer Trust Scale (HCTS), Risk Perception subscale: mean of 5 negatively worded items, 1–7 (1 = strongly disagree, 7 = strongly agree). Higher = MORE perceived risk. Not reverse-coded in this file; the analysis reverse-scores it as 8 − x.
- HCTS_Competency: HCTS Competency subscale, mean of 3 items, 1–7 (higher = more trust).
- HCTS_Reciprocity: HCTS Reciprocity subscale, mean of 2 items, 1–7 (higher = more trust).
- HCTS_Benevolence: HCTS Benevolence subscale, mean of 3 items, 1–7 (higher = more trust).
- HCTS_GeneralTrust: HCTS General Trust subscale, mean of 3 items, 1–7 (higher = more trust).
- NASA-TLXMental Demand: NASA Task Load Index, Mental Demand. Raw slider, −10 to +10; higher = more demand.
- NASA-TLXPhysical Demand: NASA-TLX Physical Demand, raw slider −10 to +10 (higher = more demand).
- NASA-TLXTemporal Demand: NASA-TLX Temporal Demand, raw slider −10 to +10 (higher = more time pressure).
- NASA-TLXPerformance: NASA-TLX Performance, raw slider −10 to +10; higher = better self-rated performance. The analysis reverse-codes it so that higher = more workload.
- NASA-TLXEffort: NASA-TLX Effort, raw slider −10 to +10 (higher = more effort).
- NASA-TLXFrustration: NASA-TLX Frustration, raw slider −10 to +10 (higher = more frustration).
File: PCPBot_Translator_Study.Rmd
Description: R Markdown notebook (knits to PDF) with the primary analyses of the three outcomes each participant rated per clinical case: communication quality (CommQ), summary quality, and BUS-11 usability. It reads fullData.csv and fits a linear mixed-effects model (lme4/lmerTest) for each outcome
File: PCPBot_Analysis_stats_manu_rev_Subjective.R
Description: R script with descriptive and between-group analyses of participant background and end-of-study subjective measures
Code/software
Viewing the data. No specialized software is needed.
Running the analyses. Statistical analyses were conducted in RStudio (version 4.3.1). Both code files read fullData.csv. They analyze different outcomes, do not overlap, and can be run independently.
1. PCPBot_Translator_Study.Rmd
| Package | Purpose |
|---|---|
| dplyr | Data manipulation |
| tidyr | Reshaping data to long format |
| lme4 | Linear mixed-effects models |
| lmerTest | Satterthwaite F-tests for mixed models |
| emmeans | Estimated marginal means and contrasts |
| ggplot2 | Figures |
| rmarkdown | Knitting the notebook |
| knitr | Knitting the notebook |
2. PCPBot_Analysis_stats_manu_rev_Subjective.R
| Package | Purpose |
|---|---|
| readr | Reading the CSV |
| dplyr | Data manipulation |
| tidyr | Reshaping data |
| tibble | Data frames |
| stringr | Text matching |
| ggplot2 | Figures |
| psych | Cronbach’s alpha, item-total correlations |
| rstatix | Kruskal–Wallis tests, effect sizes |
| FSA | Dunn post-hoc tests |
| fmsb | Radar charts |
Access information
Other publicly accessible locations of the data:
Human subjects data
This study was approved by the University of Pennsylvania Institutional Review Board. All participants provided informed consent, including explicit consent for the public release of their de-identified data. Because all clinical scenarios were synthetic, the dataset contains no health information pertaining to participants. Before release and analysis, all direct identifiers were removed, including names, contact information, and associated metadata such as timestamps and IP addresses. Each participant was assigned a randomly generated study identifier. Conversation transcripts and annotations were manually reviewed, and any personally identifying information volunteered by participants was redacted. The key linking study identifiers to participant identities is retained on a secure institutional server and is not included in this release.
