Predicting pharmacy choice for managed care network design.
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
Predicting pharmacy choice for managed care network design - PMC Skip to main content An official website of the United States government Here's how you know Here's how you know Search Log in Primary site navigation Search Log in Search PMC Full-Text Archive Search in PMC Journal List User Guide As a library, NLM provides access to scientific literature. Inclusion in an NLM database does not imply endorsement of, or agreement with, the contents by NLM or the National Institutes of Health. Learn more: PMC Disclaimer | PMC Copyright Notice J Manag Care Spec Pharm . 2026 Jun;32(6):679–690. doi: 10.18553/jmcp.2026.32.6.679 Predicting pharmacy choice for managed care network design Michael Irungu 1, ✉ , Suhila Sawesi 1 , Mohamed Rashrash 2 , Pranitha Presingu 1 , Kyle Kane 1 , Jon Schommer 3 , Lawrence Brown 4 Author information Copyright and License information 1 Health Informatics and Bioinformatics, Department of Information Sciences and Technologies, College of Computing, Grand Valley State University, Grand Rapids, MI 2 College of Health Sciences and Pharmacy, Chicago State University, IL 3 Department of Pharmaceutical Care & Health Systems, College of Pharmacy, University of Minnesota, Minneapolis 4 Department of Pharmaceutical Economics and Policy, Chapman University School of Pharmacy, Irvine, CA ✉ AUTHOR CORRESPONDENCE: Michael Irungu, 1.616.337.2018; irungum@mail.gvsu.edu Copyright © 2026, Academy of Managed Care Pharmacy. All rights reserved. PMC Copyright notice PMCID: PMC13193322 PMID: 42166299 Abstract BACKGROUND: Pharmacy type selection is a key component of medication access and use. Prior studies have commonly used logistic regression to examine pharmacy type choice, but this approach may not fully capture complex relationships among patient characteristics. OBJECTIVE: To examine patient characteristics associated with pharmacy type selection and to compare the performance of traditional logistic regression with ensemble machine learning models for predicting pharmacy type selection. METHODS: We conducted a cross-sectional analysis of adults participating in the 2021 National Consumer Survey on Medication Experience (NCSME-PR; n = 1,502). The outcome was the pharmacy type selected when a prescription medication was needed, categorized as chain, independent, supermarket, mass merchandise, mail-order, or clinic-based pharmacy. Predictors included patient characteristics defined by the Andersen Behavioral Model of Health Services Use, encompassing predisposing, enabling, and need factors. We compared logistic regression with random forest and extreme gradient boosting (XGBoost) models using 5-fold cross-validation and held-out test data. Model discrimination was assessed using the area under the receiver operating characteristic curve. RESULTS: Across pharmacy types, ensemble models demonstrated higher discrimination than logistic regression, with XGBoost achieving the highest area under the receiver operating characteristic curve values. Prior mail-order pharmacy use, number of chronic conditions, income, and US region were consistently associated with the selection of pharmacy type. Ensemble models captured nonlinear patterns in these associations that were not fully reflected in logistic regression models. CONCLUSIONS: Pharmacy type selection varies by patient characteristics and pharmacy type, and predictive performance differs by analytic approach. Comparative modeling indicates that conclusions about pharmacy choice may depend on the modeling framework used. These findings contribute to pharmacy choice research and highlight considerations for future studies using managed care administrative data. Plain language summary We studied how people choose where to have prescriptions filled using survey data from 1,502 US adults. We examined how characteristics such as age, chronic conditions, prior mail-order use, income, and region were related to the type of pharmacy respondents said they would use when they needed a prescription. We found that pharmacy choice varied across pharmacy types and patient characteristics and that some choices were easier to predict than others. Implications for managed care pharmacy Ensemble models predict pharmacy channel choice better than logistic regression and reveal actionable segments. Plans can steer convenience-oriented members to cost-effective chain options while preserving independent pharmacy access for high-complexity patients (≥3 conditions). Prior mail-order use strongly signals readiness for mail programs. Region-specific patterns can refine network adequacy and equitable access strategies, supporting benefit design that improves satisfaction, adherence, and cost control. Pharmacy type selection is important for understanding health care utilization behavior, with significant implications for medication adherence, patient outcomes, and health care resource allocation. The choice of pharmacy type, whether independent, chain, supermarket/mass merchandise, mail-order, or clinic-based facilities, reflects complex patient decision-making processes influenced by numerous factors, including pharmacist traits, convenience, cost, and demographic variables. 1 – 5 Understanding these selection patterns is increasingly important as the pharmacy landscape shifts significantly with market consolidations, expanded service offerings, and growth in niche sectors such as mail-order options. 6 , 7 For managed care organizations (MCOs), these patterns directly impact network adequacy planning, patient satisfaction, and cost management strategies. 8 MCOs must balance regulatory requirements for pharmacy access with cost optimization, making evidence-based prediction of consumer pharmacy preferences critical for strategic network design. 9 Current MCO approaches to pharmacy network design rely primarily on geographic access standards 10 , 11 and basic demographic considerations derived from traditional research on pharmacy selection factors such as age, education, race, geographic region, insurance coverage, and financial considerations. 1 – 3 However, these conventional methods, which have historically relied on traditional statistical approaches and logistic regression modeling based on the Andersen Behavioral Model of Health Service Use framework, 1 , 3 , 4 , 6 may not capture the complex decision-making processes that drive pharmacy type selection. These traditional methods do not identify complex nonlinear relationships and interactions among predictors, which often influence decision-making. Recent advances in predictive analytics, including machine learning approaches, have demonstrated superior predictive performance across various clinical and administrative applications. 12 – 14 These advances offer opportunities to develop more sophisticated, consumer-centered approaches to network optimization that can improve satisfaction while managing costs. 8 This study addresses the critical need for evidence-based tools to support the MCO pharmacy network strategy. By extending the analysis of pharmacy type choice beyond traditional approaches through implementing multiple machine learning methods, including ensemble methods (random forest, XGBoost) and clustering techniques ( Supplementary Figure 1 (224.2KB, pdf) , available in online article), we aim to identify complex relationships that influence pharmacy selection. Additionally, model interpretation techniques such as SHAP (SHapley Additive exPlanations) and custom feature importance implementations are employed to transform complex model outputs into actionable insights for managed care decision-making. 15 This study examines pharmacy type selection using national patient-reported survey data with the aim of informing managed care pharmacy research. Specifically, the objectives were to (1) evaluate the ability of predictive models to discriminate among pharmacy types commonly encountered in managed care settings; (2) identify patient characteristics associated with pharmacy type selection across dispensing channels; and (3) assess whether model performance differs by pharmacy type when comparing traditional logistic regression with ensemble learning approaches. By focusing on differences in predictability across pharmacy channels, this study provides evidence on how analytic approaches influence inferences about pharmacy choice in managed care contexts. Methods DATA SOURCE AND SURVEY DESIGN This study used data from the 2021 National Consumer Survey on the Medication Experience and Pharmacists’ Roles (NCSME-PR). 16 , 17 It is a cross-sectional, web-based survey administered between April 16 and April 30, 2021, to US adults aged 18 years or older. The survey was designed to assess medication use, pharmacy utilization, pharmacy services, health status, and sociodemographic characteristics ( Supplementary Table 1 (224.2KB, pdf) ). The 2015 NCSME-PR survey used previously developed and validated measures that were pilot tested in 2013 and subsequently administered in 2015, 2016, and 2021 survey waves. Prior analyses have evaluated construct validity using factor analysis and internal consistency reliability using Cronbach’s coefficient alpha, supporting the measurement properties of the survey instruments. 16 , 18 Data for the 2021 survey were collected through an opt-in online panel administered by Qualtrics. 19 Eligibility criteria included US residency and age 18 years or older, which were confirmed through screening questions before survey initiation. Quota-based sampling was used to approximate US population distributions across selected characteristics, including age group, sex, geographic division, and urban-rural residence. The survey administrator applied standard panel-level data quality procedures, including identity verification, duplicate response prevention, and removal of responses with implausibly rapid completion times or inconsistent answering patterns. All measures were self-reported. STUDY VARIABLES Dependent Variable The dependent variable was pharmacy type selection, derived from the NCSME-PR survey item: “ If you need a prescription medication today, what type of pharmacy would you use to obtain it? ” Respondents selected 1 option from a predefined list provided in the survey instrument. Response options included independent pharmacy, chain pharmacy, supermarket or mass merchandise pharmacy, mail-service pharmacy, and clinic-based pharmacy, defined in the survey as clinic- or institution-based pharmacies (eg, Veterans Affairs hospital or clinic pharmacies). All responses were mapped directly to 1 of these 5 categories as specified in the survey codebook. 17 Independent Variables Independent variables were selected and organized according to the Andersen Behavioral Model of Health Care Utilization 1 , 6 , 18 which classifies determinants of health service use into predisposing, enabling, and need factors. Variables were included to characterize demographic, socioeconomic, access-related, and health status features associated with pharmacy selection behavior, consistent with prior pharmacy utilization research. Predisposing factors included age, gender, race, education level, and geographic division. 6 Age was categorized into 4 groups (18-33, 34-50, 51-69, and ≥70 years) to allow for nonlinear associations with pharmacy choice and to enhance interpretability, with age 70 years or older as the reference category. Gender was coded as male or female. Race was dichotomized as White vs non-White. Education was coded as bachelor’s degree or higher vs less than a bachelor’s degree. Geographic division was classified as Northeast, Midwest, South, or West based on state of residence. Enabling factors included insurance coverage, prior mail-service pharmacy use, household income, and financial hardship. Medical and prescription drug insurance coverage were coded as binary indicators. Prior mail-service pharmacy use was included as a behavioral indicator relevant to mail-service selection. Household income was modeled as a continuous variable to preserve variation across income levels. Financial hardship was defined based on respondents’ agreement with statements indicating difficulty affording health care or medications. Need factors included indicators of medication use, health status, and pharmacy service utilization. Prescription, over-the-counter, and herbal product use were included as binary variables reflecting overall medication engagement. Pharmacy service utilization variables included vaccination received at a pharmacy, medication therapy management services, and drive-through pharmacy use. Health status was captured by self-reported number of chronic conditions and self-rated health (excellent, good, fair, poor). These variables were included as self-reported indicators of health needs and care-seeking behavior rather than as proxies for claims-based clinical diagnoses. 17 DATA ANALYSIS The analytical approach implemented both traditional statistical and machine learning methods to examine factors associated with pharmacy type selection. Initial quality checks addressed missing values through standardized recoding, with exclusions documented in the sample attrition diagram ( Figure 1 ). FIGURE 1. Sample Attrition Process Of 1,521 initial respondents, 19 were excluded for invalid responses to the pharmacy type question or missing critical demographic variables, yielding a final analytic sample of 1,502 participants. NCSME-PR = National Consumer Survey on Medication Experience. Open in a new tab Multiple logistic regression models served as the baseline analytic approach for each pharmacy type, following methodologies established in previous pharmacy type research. 1 , 18 Model fit was assessed using area under the receiver operating characteristic curve (AUC), pseudo-R 2 , and Akaike Information Criterion. Machine learning models were implemented to capture potential nonlinear relationships and interactions that may not be fully captured by traditional regression models. Random forest models were developed using the randomForest package (version 4.7.1.2) in R. 20 Models were trained using 5-fold cross-validation on 80% of the analytic sample. Hyperparameter tuning focused on the ‘mtry’ parameter, 21 which controls the number of variables considered at each split. Multiple values were tested to identify the setting that optimized predictive performance as measured by the AUC. 22 Final model performance was assessed using the remaining 20% of the data. For random forest models, feature importance was assessed using mean decrease in impurity, 23 which reflects the average reduction in node impurity attributed to each predictor across all trees in the ensemble. Extreme gradient boosting (XGBoost) 24 models were specified using a binary logistic objective with AUC-based evaluation. Five-fold cross-validation with early stopping was applied to reduce overfitting. Key XGBoost hyperparameters (learning rate = 0.3, tree depth = 6, row and column subsampling = 0.8) were initialized in ranges recommended by empirical XGBoost studies 25 , 26 to balance predictive performance and model complexity and then tuned using cross-validation. For XGBoost models, feature importance was quantified using the Gain metric, defined as the relative contribution of a predictor to improving model performance based on the total reduction in the loss function attributed to splits involving that predictor across all trees. Gain reflects relative importance within a model and does not represent an effect of size or direction of association. 26 , 27 The XGBoost models were implemented using the xgboost package in R (version 1.7.9.1). Model interpretation was conducted using SHapley Additive exPlanations (SHAP) to quantify the contribution of individual predictors to model predictions and to assess nonlinear effects and interactions. SHAP values were generated using the ‘ SHAPforxgboost ’ package (version 0.1.0). 28 SHAP values quantify the contribution of each predictor to an individual model for prediction, and mean absolute SHAP values summarize the overall importance of predictors across the study sample. SHAP values were used for descriptive interpretation of model behavior and not for statistical inference. All analyses were conducted using R version 4.3.2. Results SAMPLE CHARACTERISTICS The final analytic sample consisted of 1,502 respondents after excluding observations with missing data on key variables ( Table 1 ). When asked which type of pharmacy they would select to obtain a prescription medication in an immediate-need scenario, chain pharmacies were the most frequently selected option (38.4%), followed by supermarket or mass merchandise pharmacies (32.6%), independent pharmacies (13.5%), clinic-based pharmacies (8.3%), and mail-service pharmacies (7.1%). TABLE 1. Study Variables, Coding, and Distribution Factor type Variable Category Count Distribution (%) Dependent variable Pharmacy type Chain 203 13.5 Supermarket/mass merchandise 577 38.4 Independent 490 32.6 Clinic-based 107 7.1 Mail-service 125 8.3 Predisposing factors Age, years 18-33 230 15.3 34-50 364 24.2 51-69 580 38.6 ≥70 328 21.9 Gender Male 755 50.3 Female 747 49.7 Race White 1,280 85.2 Non-White 222 14.8 Education Bachelor’s degree or higher 609 40.5 Less than bachelor’s 893 59.5 Geographic region Northeast 346 23.0 Midwest 353 23.5 South 550 36.6 West 253 16.9 Enabling factors Drug insurance Yes 1,290 85.9 No 212 14.1 Prior mail service use Yes 433 28.8 No 1,069 71.2 Financial hardship Yes 700 46.6 No 802 53.4 Need factors Chronic conditions Mean (SD) 2.2 2.2 (2.2) Prescription use Yes 1,116 74.3 No 386 25.7 OTC use Yes 802 53.4 No 700 46.6 Herbal product use Yes 527 35.1 No 975 64.9 MTM use Yes 42 2.8 No 1,460 97.2 Drive-thru use Yes 518 34.5 No 984 65.5 Medication side effects Yes 397 26.4 No 1,105 73.6 Self-rated health Excellent 182 12.1 Good 868 57.8 Fair 388 25.8 Poor 64 4.3 Open in a new tab Percentages may not sum to 100 because of rounding. Chronic conditions are reported as mean (SD). Pharmacy type reflects the pharmacy the respondent would select when a prescription medication is needed. OTC = over the counter; MTM = medication therapy management. The age distribution of respondents showed that 38.6% were aged 51 to 69 years, 24.2% were aged 34 to 50 years, 21.9% were aged 70 years or older, and 15.3% were aged 18 to 33 years. The sample was nearly evenly split by sex, with 50.3% identifying as male and 49.7% as female. Most respondents identified as White (85.2%), and 40.5% reported having completed a bachelor’s degree or higher. Respondents were geographically distributed across the United States, with the largest proportion residing in the South (36.6%), followed by the Midwest (23.5%), Northeast (23.0%), and West (16.9%). Most participants reported having prescription drug insurance coverage (85.9%). Prior experience with mail-service pharmacy use was reported by 28.8% of respondents. In contrast, 7.1% of respondents selected mail-service pharmacy as their fulfillment option under the immediate-need scenario assessed in the survey. LOGISTIC REGRESSION RESULTS Multivariable logistic regression models were estimated separately for each pharmacy type. Model performance varied across pharmacy types, as shown in Table 2 . The strongest model fit was observed for mail-service pharmacy selection (pseudo-R 2 = 0.312), followed by clinic-based pharmacy selection (pseudo-R 2 = 0.186). Models for independent pharmacy (pseudo-R 2 = 0.118), chain pharmacy (pseudo-R 2 = 0.104), and supermarket or mass merchandise pharmacy selection (pseudo-R 2 = 0.095) demonstrated more modest explanatory power. TABLE 2. Multivariable Logistic Regression Results for Pharmacy Type Selection Among US Adults (Odds Ratios and P Values) Factor Variable Independent Chain Super/Mass Mail-order Clinic-based OR (P) CI OR (P) CI OR (P) CI OR (P) CI OR (P) CI Predisposing Race (White) 1.87 (0.016) 1.15, 3.20 0.63 (0.004) 0.45, 0.86 1.31 (0.123) 0.93, 1.84 0.81 (0.550) 0.41, 1.67 1.04 (0.897) 0.61, 1.82 Education (bach+) 0.74 (0.614) 0.77, 1.56 1.27 (0.771) 0.80, 1.34 0.93 (0.049) 0.70, 1.18 0.89 (0.651) 0.53, 1.47 1.10 (0.668) 0.70, 1.73 Division region 0.93 (0.382) 0.80, 1.09 0.85 (0.003) 0.76, 0.94 1.15 (0.011) 1.03, 1.29 0.94 (0.592) 0.76, 1.17 1.22 (0.031) 1.02, 1.47 Gender (male) 0.63 (0.009) 0.45, 0.89 1.07 (0.599) 0.84, 1.36 0.85 (0.207) 0.66, 1.09 1.84 (0.026) 1.08, 3.15 2.03 (0.002) 1.30, 3.21 Age 18-33 0.81 (0.182) 0.82, 2.74 0.90 (0.625) 0.60, 1.36 0.99 (0.905) 0.57, 1.36 0.32 (0.045) 0.10, 0.92 2.11 (0.033) 1.06, 4.20 Age 34-50 1.33 (0.477) 0.71, 2.09 0.88 (0.498) 0.61, 1.27 0.81 (0.047) 0.74, 1.56 0.47 (0.092) 0.19, 1.10 1.54 (0.168) 0.83, 2.88 Age 51-69 1.11 (0.086) 0.95, 2.40 0.69 (0.020) 0.50, 0.94 1.24 (0.185) 0.90, 1.72 1.35 (0.297) 0.77, 2.40 0.72 (0.268) 0.40, 1.29 Enabling Drug insurance 1.09 (0.738) 0.68, 1.78 1.41 (0.049) 1.00, 1.99 0.71 (0.040) 0.51, 0.99 0.63 (0.241) 0.30, 1.40 1.10 (0.735) 0.64, 1.99 Mail Rx 0.58 (0.007) 0.39, 0.85 0.55 (<0.001) 0.42, 0.73 0.53 (<0.001) 0.40, 0.71 30.90 (<0.001) 16.46, 63.82 2.71 (<0.001) 1.77, 4.17 Income 0.96 (0.337) 0.88, 1.04 1.01 (0.734) 0.95, 1.07 1.03 (0.428) 0.96, 1.09 0.90 (0.129) 0.79, 1.03 1.01 (0.782) 0.91, 1.12 Financial hardship 0.79 (0.212) 0.54, 1.14 1.29 (0.065) 0.98, 1.69 0.97 (0.845) 0.74, 1.28 1.19 (0.545) 0.67, 2.08 0.65 (0.088) 0.39, 1.06 Need OTC use 0.71 (0.045) 0.51, 0.99 1.07 (0.604) 0.83, 1.37 1.07 (0.617) 0.83, 1.37 1.29 (0.349) 0.76, 2.22 1.05 (0.826) 0.68, 1.63 Rx use 1.67 (0.021) 1.09, 2.62 0.77 (0.087) 0.57, 1.04 1.03 (0.855) 0.76, 1.40 1.25 (0.615) 0.55, 3.15 1.00 (0.990) 0.59, 1.71 Herbal use 1.37 (0.053) 1.00, 1.89 0.74 (0.011) 0.58, 0.93 1.11 (0.398) 0.87, 1.41 0.70 (0.145) 0.43, 1.13 1.39 (0.123) 0.91, 2.10 Vaccine at pharmacy 0.85 (0.338) 0.62, 1.18 1.34 (0.014) 1.06, 1.70 0.94 (0.618) 0.74, 1.19 0.77 (0.289) 0.48, 1.25 0.79 (0.258) 0.52, 1.19 MTM use 1.75 (0.090) 0.90, 3.29 0.42 (0.001) 0.25, 0.71 2.22 (0.001) 1.36, 3.63 0.60 (0.325) 0.21, 1.61 1.37 (0.359) 0.69, 2.66 Drive-thru 1.08 (0.622) 0.79, 1.49 2.47 (<0.001) 1.96, 3.12 0.40 (<0.001) 0.31, 0.51 1.13 (0.633) 0.68, 1.85 0.71 (0.120) 0.46, 1.09 Number of chronic conditions 1.05 (0.205) 0.97, 1.14 0.95 (0.161) 0.89, 1.02 1.01 (0.706) 0.95, 1.08 1.07 (0.326) 0.93, 1.22 0.93 (0.248) 0.81, 1.05 Side effects 1.05 (0.792) 0.72, 1.53 0.63 (0.002) 0.47, 0.84 1.33 (0.050) 1.00, 1.76 1.17 (0.588) 0.66, 2.06 1.46 (0.123) 0.90, 2.36 Health excellent 1.17 (0.726) 0.49, 2.93 1.10 (0.801) 0.54, 2.26 1.01 (0.966) 0.51, 2.02 0.99 (0.984) 0.24, 4.05 0.80 (0.728) 0.24, 3.20 Health good 0.76 (0.480) 0.37, 1.69 1.27 (0.444) 0.69, 2.41 0.94 (0.831) 0.52, 1.70 1.38 (0.552) 0.50, 4.21 0.91 (0.874) 0.32, 3.30 Health fair 1.08 (0.829) 0.54, 2.36 1.23 (0.505) 0.68, 2.31 0.80 (0.445) 0.45, 1.44 0.77 (0.614) 0.28, 2.28 1.41 (0.553) 0.50, 5.03 Pseudo-R 2 0.114 0.104 0.095 0.312 0.186 Open in a new tab Reference categories: Age 70 years or older, female gender, non-White race, less than bachelor’s education, poor health status. bach+ = bachelor’s degree or higher; OR = odds ratio; P = P value; Rx-only = clinic-based pharmacy; Super/Mass = supermarket/mass merchandise pharmacy. Several patient characteristics were significantly associated with pharmacy type selection. Race was associated with selection of independent and chain pharmacies; respondents identifying as White had higher odds of selecting an independent pharmacy (odds ratio [OR] = 1.87; P = 0.032) and lower odds of selecting a chain pharmacy (OR = 0.63; P = 0.041) than non-White respondents. Sex was also associated with pharmacy selection. Male respondents had lower odds of selecting independent pharmacies (OR = 0.63; P = 0.028) and higher odds of selecting clinic-based pharmacies (OR = 2.03; P = 0.014) compared with female respondents. Prior mail-service pharmacy use was strongly associated with selection of mail-service pharmacy under the immediate-need scenario (OR = 30.90; P < 0.001) and was inversely associated with selection of chain pharmacies (OR = 0.55; P = 0.019) and supermarket or mass merchandise pharmacies (OR = 0.53; P = 0.021). Geographic division was significantly associated with the selection of chain and supermarket or mass merchandise pharmacies. Relative to respondents residing in the Northeast (reference category), those residing in other US divisions showed differing odds of selecting chain pharmacies (OR = 0.85; P = 0.044) and supermarket or mass merchandise pharmacies (OR = 1.15; P = 0.037). ENSEMBLE MODEL PERFORMANCE The predictive performance of logistic regression, random forests, and XGBoost models was compared using the AUC, sensitivity, specificity, and accuracy ( Figure 2 ). Across all pharmacy types, ensemble models demonstrated improved predictive performance compared with logistic regression. FIGURE 2. Model Performance Comparison by Pharmacy Type: AUC Values for Logistic Regression, Random Forest, and XGBoost Models AUC = area under the curve; ROC = receiver operating characteristic; Super/Mass = supermarket/mass merchandise pharmacy. Open in a new tab Random forest models showed modest performance gains relative to logistic regression. For independent pharmacy selection, the random forest model achieved an AUC of 0.541, with a sensitivity of 0.533 and a specificity of 0.563. For chain pharmacy selection, the AUC was 0.633, with a sensitivity of 0.543 and specificity of 0.599. The supermarket or mass merchandise pharmacy model achieved an AUC of 0.629, with a sensitivity of 0.592 and a specificity of 0.607. Mail-service pharmacy selection demonstrated the strongest random forest performance, with an AUC of 0.823, sensitivity of 0.781, and specificity of 0.813. The clinic-based pharmacy model achieved an AUC of 0.668, with a sensitivity of 0.568 and specificity of 0.-695. XGBoost models demonstrated consistently higher predictive performance across all pharmacy types, as shown in Figure 3 . For independent pharmacy selection, the XGBoost model achieved an AUC of 0.861 with an accuracy of 0.873. Chain pharmacy selection showed an AUC of 0.865 with an accuracy of 0.782. The supermarket or mass merchandise pharmacy model achieved an AUC of 0.831 with an accuracy of 0.767. Mail-service pharmacy selection demonstrated the highest performance, with an AUC of 0.963 and an accuracy of 0.935. The clinic-based pharmacy model achieved an AUC of 0.903 with an accuracy of 0.920. FIGURE 3. ROC Curves for XGBoost Models by Pharmacy Channel ROC curves and AUC values demonstrate differences in model discrimination across pharmacy channels. Structured channels such as mail-service and clinic-based pharmacies showed higher discrimination than other retail pharmacy types. AUC = area under the curve; ROC = receiver operating characteristic; Super/Mass = supermarket/mass merchandise pharmacy. Open in a new tab FEATURE IMPORTANCE ANALYSIS Feature importance was evaluated using random forest and XGBoost models. Importance was quantified using Gain (random forest) and mean absolute SHAP values (XGBoost). Predictor rankings were compared across models to assess consistency. Across all pharmacy types, number of chronic conditions, geographic division, and household income consistently ranked among the top predictors in both random forest and XGBoost models. For independent pharmacies, the number of chronic conditions ranked first in both random forest (Gain = 0.17) and XGBoost (SHAP = 0.15), followed by geographic division (RF Gain = 0.11; SHAP = 0.16) and income (RF Gain = 0.09; SHAP = 0.10). For chain pharmacies, geographic division was the top-ranked predictor (RF Gain = 0.11; SHAP = 0.19), followed by number of chronic conditions (RF Gain = 0.10; SHAP = 0.16) and income (RF Gain = 0.08; SHAP = 0.12). For supermarket/mass merchandise pharmacies, number of chronic conditions ranked first in random forest (Gain = 0.18) and second in XGBoost (SHAP = 0.14). Drive-through service ranked first in XGBoost (SHAP = 0.25) but was mid-ranked in random forest, indicating model-specific differences in feature prioritization. For mail-order pharmacies, prior mail-order pharmacy use was the dominant predictor across all models (RF Gain = 0.36; SHAP = 0.50), exceeding the next-highest predictor by more than 3-fold. Secondary predictors included the number of chronic conditions and geographic division. For clinic-based pharmacies, geographic division ranked first in both random forest (Gain = 0.12) and XGBoost (SHAP = 0.18), followed by income and number of chronic conditions. Across pharmacy types, random forest and XGBoost demonstrated high agreement for the top-ranked predictors, while XGBoost assigned relatively greater importance to service-related and interaction-sensitive variables. Logistic regression models did not demonstrate comparable rank differentiation among predictors. MODEL INTERACTIONS AND NONLINEAR RELATIONSHIPS For mail-service pharmacy selection, a strong interaction between prior mail-service pharmacy use and the number of chronic conditions was identified. In XGBoost models, the combined contribution of these predictors ranked among the highest interaction effects, with an interaction Gain value of 0.219, exceeding the Gain associated with either predictor evaluated independently. This interaction coincided with improved model discrimination for mail-service outcomes, where the AUC increased from 0.874 under logistic regression to 0.909 under XGBoost. For chain pharmacy selection, ensemble models identified drive-through pharmacy use as a nonlinear predictor with substantial influence. Drive-through use ranked as the top predictor in random forest models and remained among the leading predictors in XGBoost analyses. SHAP analyses demonstrated a wide range of contributions for this variable, indicating nonlinear effects that were not captured by additive logistic regression estimates. Across multiple pharmacy types, geographic division demonstrated nonlinear contributions to predicted pharmacy selection. Region consistently ranked among the top predictors in ensemble models, with SHAP analyses showing asymmetric effects across outcomes. These regional patterns were not reflected in corresponding logistic regression estimates, suggesting that the influence of geography on pharmacy selection is not adequately represented by linear, additive terms alone. Discussion This study examined pharmacy type selection as a health services behavior using national patient-reported survey data and compared the performance of commonly used analytic approaches in managed care research. Pharmacy channel choice is central to pharmacy benefit management because it shapes access patterns and utilization access across pharmacy types. 29 , 30 Prior studies have shown that pharmacy selection reflects patient characteristics, health needs, and geographic context, 1 , 2 , 18 , 31 but less is known about how predictability varies across pharmacy types. Comparing traditional regression models with ensemble approaches across pharmacy types shows that the strength of patient-level predictors varies by dispensing channel. Logistic regression analyses identified several patient characteristics consistently associated with pharmacy type selection, including prior mail-service pharmacy use, 32 number of chronic conditions, gender, and geographic region. These findings align with earlier studies using the patient survey data and related data sources, which have documented persistence in pharmacy channel use and associations with health burden 33 and geographical factors. 34 , 35 Model performance varied substantially by pharmacy type. Mail-service and clinic-based pharmacy logistic regression models demonstrated higher discrimination and model fit than models for chain or supermarket and mass merchandise pharmacies. This pattern is consistent with prior literature indicating that mail-service and institution-based pharmacy use is more closely tied to ongoing medication needs and structured benefit arrangements. 29 , 36 These arrangements push patients enrolled in MCO or plans administered by pharmacy benefit managers to mail-order dispensing, which validates the strong association between prior mail-service use and mail-service selection observed in prior studies. 29 , 34 Liberman et al indicate that such restrictive pharmacy benefit designs might have negative effects , with members stuck with less preferable pharmacy channels, affecting adherence and medication use. 34 The lower explanatory performance for retail pharmacy in logistic regression models’ outcomes suggests that patient-reported characteristics alone may be insufficient to fully characterize retail pharmacy choice, 37 which may also depend on network structure, local availability, and other contextual factors not captured in survey data. Comparisons between logistic regression and ensemble models further demonstrated that an analytic approach influences inference about pharmacy choice. 38 Ensemble methods showed improved discrimination for certain pharmacy types, particularly mail-service pharmacies, indicating the presence of nonlinear relationships and wider ranges of predictor influence that are not captured by regression models assuming linear effects. Importantly, these improvements were not uniform across pharmacy types, underscoring that more complex methods do not universally outperform traditional approaches. 39 , 40 For managed care pharmacy research, these findings emphasize the importance of selecting analytic methods that align with the structure and stability of the dispensing channel under study. 41 These results inform how pharmacy channel behavior can be studied rather than prescribing specific operational actions. Patient-level survey data appear more informative for understanding the selection of pharmacy channels governed by structured benefit designs and repeat use, such as mail-service pharmacies, than for open-access retail channels. 34 , 36 These findings reinforce the need to combine patient-reported data with claims, network, and benefit design information when evaluating retail pharmacy use in managed care settings. 42 LIMITATIONS Several limitations should be considered when interpreting these findings. First, pharmacy type selection was assessed using a patient-reported survey question framed around an immediate need for a prescription. This may underrepresent preferences for certain pharmacy types, such as mail pharmacies, which typically support long-term prescription therapies for chronic conditions rather than same-day dispensing. Future survey waves should include a distinct preference item (eg, preferred channel for chronic refills and preferred channel absent coverage restrictions) to better separate preference from constrained utilization. Second, the analysis relied on self-reported survey data rather than administrative claims, limiting the availability of plan-level factors such as network design, cost-sharing, pharmacy density, or rural-urban residence that may influence pharmacy choice. Third, although geographic division was included, more granular measures of local market structure and access were not available, which may contribute to unexplained variation in retail pharmacy selection. Finally, the cross-sectional design limits the assessment of changes in pharmacy channel use over time. Future research using managed care administrative data or linked survey-claims datasets could build on this work by incorporating plan characteristics, longitudinal utilization patterns, and more detailed access measures to further evaluate pharmacy channel selection and its implications for pharmacy benefit design and utilization management. Conclusions This study examined pharmacy channel selection using national patient-reported survey data and found that pharmacy choice varies by patient characteristics, geographic context, and analytic approach. Comparative modeling showed that different pharmacy channels differ in how consistently selection patterns can be explained using patient-level data. These findings contribute to managed care pharmacy research by highlighting that conclusions about pharmacy channel behavior depend on both the outcome being studied and the analytic framework applied. Future research using managed care administrative or linked survey and claims data are needed to assess how these insights apply to plan-specific populations and pharmacy network evaluation. Disclosures The authors have no study funding or conflicts of interest to disclose. Acknowledgments The underlying NCSME&PR dataset is proprietary to the original investigators and Qualtrics panel and was provided to our team in deidentified form under a data-use agreement; therefore, it is not publicly available. The analysis code used in this study is available from the corresponding author upon reasonable request. This study was determined to be exempt from institutional review board review by the University of Minnesota Human Subjects Committee under federal guidelines 45 CFR Part 46.101(b). The study involved analysis of deidentified survey data that does not meet the definition of human subject research under 45 CFR 46.102(f), as no identifiable private information was included in the analysis. The authors used generative AI–assisted tools (ChatGPT, GPT-5, OpenAI, September 2025) for language editing and guideline compliance checks. No scientific content, results, or conclusions were generated by AI. All authors reviewed AI-assisted edits for accuracy. References 1. Rashrash M, Sawesi S, Schommer JC, Brown LM. Predisposing, enabling, and need factors associated with the choice of pharmacy type in the US: findings from the 2015/2016 National Consumer Survey on the Medication Experience and Pharmacists’ Roles. Pharmacy (Basel) . 2021;9(2):72. doi: 10.3390/pharmacy9020072 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 2. Patterson JA, Holdford DA. Pharmacy patronage and service utilization: Associations with patient sociodemographic and health characteristics. J Am Pharm Assoc (Wash DC) . 2019;59(5):660-9.e2. doi: 10.1016/j.japh.2019.04.022 [ DOI ] [ PubMed ] [ Google Scholar ] 3. Malewski DF, Ream A, Gaither CA. Patient satisfaction with community pharmacy: comparing urban and suburban chain-pharmacy populations. Res Social Adm Pharm . 2015;11(1):121-8. doi: 10.1016/j.sapharm.2014.05.001 [ DOI ] [ PubMed ] [ Google Scholar ] 4. Mináriková D, Malovecká I, Lehocká Ľ, Snopková M, Foltán V. The assessment of patient satisfaction and attendance of community pharmacies in Slovakia. European Pharmaceutical Journal . 2016;63(2):23-9. doi: 10.1515/afpuc-2016-0002 [ DOI ] [ Google Scholar ] 5. Patel PM, Vaidya V, Osundina F, Comoe DA. Determining patient preferences of community pharmacy attributes: a systematic review. J Am Pharm Assoc (Wash DC) . 2020;60(2):397-404. doi: 10.1016/j.japh.2019.10.008 [ DOI ] [ PubMed ] [ Google Scholar ] 6. Andersen RM, Rice TH, Kominski GF. Changing the U.S. Health Care System . John Wiley & Sons; 2011. [ Google Scholar ] 7. Parasrampuria S, Murphy S. Trends in Prescription Drug Spending, 2016-2021. ASPE. 2022. Accessed December 29, 2025. http://aspe.hhs.gov/reports/trends-prescription-drug-spending 8. Bendicksen L, Kesselheim AS. Anticipated efficiencies, real costs: Medicaid managed care organizations and the pharmacy benefit. J Manag Care Spec Pharm . 2022;28(3):354-61. doi: 10.18553/jmcp.2022.28.3.354 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 9. Zhu JM, Rumalla KC, Polsky D. New opportunities to strengthen Medicaid managed care network adequacy standards. JAMA Health Forum . 2023;4(10):e233194-e4. doi: 10.1001/jamahealthforum.2023.3194 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 10. Zhu JM, Rowland R, Polsky D, Suneson I, Haeder SF, Cohen DJ, et al. Medicaid managed care organizations’ experiences with network adequacy. Health Aff Sch . 2025;3(4):qxaf049. doi: 10.1093/haschl/qxaf049 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 11. Zhu JM, Polsky D, Johnstone C, McConnell KJ. Variation in network adequacy standards in Medicaid managed care. Am J Manag Care . 2022;28(6):288-92. doi: 10.37765/ajmc.2022.89156 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 12. Chang Y, Li T. Prediction algorithm for drugstore consumption members. In: Proceedings of the 2021 IEEE 6th International Conference on Big Data Analytics (ICBDA) . IEEE; 2021;37:214-8. doi: 10.1109/ICBDA51983.2021.9403015 [ DOI ] [ Google Scholar ] 13. Donepudi PK. AI and machine learning in retail pharmacy: systematic review of related literature. ABC Journal of Advanced Research . 2018;7(2):109-12. doi: 10.18034/abcjar.v7i2.514 [ DOI ] [ Google Scholar ] 14. Allam H. Prescribing the future: the role of artificial intelligence in pharmacy. Information (Basel) . 2025;16(2):131. doi: 10.3390/info16020131 [ DOI ] [ Google Scholar ] 15. Nohara Y, Matsumoto K, Soejima H, Nakashima N. Explanation of machine learning models using shapley additive explanation and application for real data in hospital. Comput Methods Programs Biomed . 2022;214:106584. doi: 10.1016/j.cmpb.2021.106584 [ DOI ] [ PubMed ] [ Google Scholar ] 16. Adekunle OA, Olson AW, Schommer JC, Brown LM. Influence of patient-pharmacist relationship on willingness to accept pharmacist-provided services. J Am Pharm Assoc (Wash DC) . 2023;63(3):760-8.e1. doi: 10.1016/j.japh.2022.12.016 [ DOI ] [ PubMed ] [ Google Scholar ] 17. Schommer JC, Brown LM, Adekunle O, Olson AW, Mott DA. 2021 National Consumer Survey on Medication Experiences and Pharmacists’ Roles (NCSME-PR): Codebook . University of Minnesota and Chapman University; 2021. [ Google Scholar ] 18. Presingu P, Sawesi S, Irungu M, Kane K, Rashrash M, Schommer J, et al. Consumer data insights on pharmacy utilization: comparative study of 2015 and 2021 surveys. J Am Pharm Assoc (2003) . 2026;66(1):102964. doi: 10.1016/j.japh.2025.102964 [ DOI ] [ PubMed ] [ Google Scholar ] 19. Qualtrics. Online Panels. Qualtrics.com. 2024. Accessed October 26, 2024. https://www.qualtrics.com/support/survey-platform/distributions-module/online-panels/ 20. Breiman L. Random forests. Mach Learn . 2001;45(1):5-32. doi: 10.1023/A:1010933404324 [ DOI ] [ Google Scholar ] 21. Probst P, Wright MN, Boulesteix A. Hyperparameters and tuning strategies for random forest. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery . 2019;9(3). https://arxiv.org/abs/1804.03515 [ Google Scholar ] 22. Çorbacıoğlu ŞK, Aksel G. Receiver operating characteristic curve analysis in diagnostic accuracy studies: a guide to interpreting the area under the curve value. Turk J Emerg Med . 2023;23(4):195-8. doi: 10.4103/tjem.tjem_182_23 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 23. Gilles Louppe, Wehenkel L, Sutera A, Geurts P. Understanding variable importances in forests of randomized trees. Advances in Neural Information Processing Systems . 2013;26:431-9. [ Google Scholar ] 24. Chen T, Guestrin C. XGBoost: a Scalable Tree Boosting System. In: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining - KDD ’16 . 2016;1(1):785-94. [ Google Scholar ] 25. Kapoor S, Perrone V. A simple and fast baseline for tuning large XGBoost models. ArXiv. 2021;abs/2111.06924. https://api.semanticscholar.org/CorpusID:244117859 26. Bentéjac C, Csörgő A, Martínez-Muñoz G. A comparative analysis of gradient boosting algorithms. Artif Intell Rev . 2020;54(3):1937-67. doi: 10.1007/s10462-020-09896-5 [ DOI ] [ Google Scholar ] 27. Ahmed U, Mahmood A, Tunio MA, Hafeez G, Khan AR, Razzaq S. Investigating boosting techniques’ efficacy in feature selection: a comparative analysis. Energy Rep . 2024;11:3521-32. doi: 10.1016/j.egyr.2024.03.020 [ DOI ] [ Google Scholar ] 28. Liu Y, Just A. SHAPforxgboost: SHAP plots for “XGBoost . ” 2020. https://github.com/liuyanguu/SHAPforxgboost/ [ Google Scholar ] 29. Mattingly TJ II, Hyman DA, Bai G. Pharmacy benefit managers: history, business practices, economics, and policy. JAMA Health Forum. 2023;4(11):e233804. doi: 10.1001/jamahealthforum.2023.3804 [ DOI ] [ PubMed ] [ Google Scholar ] 30. Kakani P, Navangul S, Lee Luo C, et al. Use of and steering to pharmacies owned by insurers and pharmacy benefit managers in Medicare. JAMA Health Forum . 2025;6(1):e244874. doi: 10.1001/jamahealthforum.2024.4874 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 31. Patterson JA, Holdford DA, Harpe SE. Patient preferences for objective quality metrics during community pharmacy selection: a discrete choice experiment. Res Social Adm Pharm . 2019;15(6):641-9. doi: 10.1016/j.sapharm.2018.08.002 [ DOI ] [ PubMed ] [ Google Scholar ] 32. Rashrash ME, Tomaszewski DM, Schommer JC, Brown LM. Consumers’ characteristics associated with the use of mail pharmacy services in the United States: findings from the 2015 National Consumer Survey on the Medication Experience. J Am Pharm Assoc (Wash DC) . 2017;57(2):206-10. doi: 10.1016/j.japh.2016.09.007 [ DOI ] [ PubMed ] [ Google Scholar ] 33. Leporatti L, Levaggi R, Montefiori M. Beyond price: the effects of non-financial barriers on access to drugs and health outcomes. Eur J Health Econ . 2021;22(4):519-29. doi: 10.1007/s10198-021-01270-8 [ DOI ] [ PubMed ] [ Google Scholar ] 34. Liberman JN, Wang Y, Hutchins DS, Slezak J, Shrank WH. Revealed preference for community and mail service pharmacy. J Am Pharm Assoc (Wash DC) . 2011;51(1):50-7. doi: 10.1331/JAPhA.2011.09161 [ DOI ] [ PubMed ] [ Google Scholar ] 35. Jacobson I, Swendener A, MacDougall H, Henning-Smith C. Chronic health conditions and health care affordability issues among U.S. rural and urban adults. J Multimorb Comorb . 2025:15:26335565251399365. doi: 10.1177/26335565251399365 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 36. Kale HP, Patel AM, Carroll NV. A comparison of pharmacy dispensing channel use and adherence to specialty drugs among Medicare Part D beneficiaries. J Manag Care Spec Pharm . 2018;24(4):317-26. doi: 10.18553/jmcp.2018.24.4.317 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 37. Dey D, Haque MS, Islam MM, et al. The proper application of logistic regression model in complex survey data: a systematic review. BMC Med Res Methodol . 2025;25(1):15. doi: 10.1186/s12874-024-02454-5 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 38. Vass C, Gray E, Payne K. Discrete choice experiments of pharmacy services: a systematic review. Int J Clin Pharm . 2016;38(3):620-30. [ DOI ] [ PubMed ] [ Google Scholar ] 39. Zullig LL, Jazowski SA, Wang TY, et al. Novel application of approaches to predicting medication adherence using medical claims data. Health Serv Res . 2019;54(6):1255-62. doi: 10.1111/1475-6773.13200 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 40. Christodoulou E, Ma J, Collins GS, Steyerberg EW, Verbakel JY, Van Calster B. A systematic review shows no performance benefit of machine learning over logistic regression for clinical prediction models. J Clin Epidemiol . 2019;110:12-22. doi: 10.1016/j.jclinepi.2019.02.004 [ DOI ] [ PubMed ] [ Google Scholar ] 41. Mattingly TJ, Happe LE, Cranston L. Emerging trends in managed care pharmacy: a mixed-method study. J Manag Care Spec Pharm . 2025;31(2-a Suppl):S2-10. doi: 10.18553/jmcp.2025.31.2-a.s2 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 42. Hung A, Gedey R, Groeneweg M, Jay M. A primer for managed care residents: how to conduct research using live medical and pharmacy claims data. J Manag Care Spec Pharm . 2019;25(5):538-43. doi: 10.18553/jmcp.2019.25.5.538 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] Articles from Journal of Managed Care & Specialty Pharmacy are provided here courtesy of Academy of Managed Care Pharmacy ACTIONS View on publisher site PDF (343.5 KB) Cite Collections Permalink RESOURCES Similar articles Cited by other articles Links to NCBI Databases Follow NCBI NCBI on X (formerly known as Twitter) NCBI on Facebook NCBI on LinkedIn NCBI on GitHub NCBI RSS feed Connect with NLM NLM on X (formerly known as Twitter) NLM on Facebook NLM on YouTube National Library of Medicine 8600 Rockville Pike Bethesda, MD 20894 Web Policies FOIA HHS Vulnerability Disclosure Help Accessibility Careers NLM NIH HHS USA.gov Back to Top
Related documents
- Evolution of community pharmacy services in the European Union and beyond: a cross-country survey of 33 national pharmacy organisations.#375357
- Impact of Clinical Pharmacy Service on Patient Care and Cost Saving#828184
- The Impact of Clinical Pharmacists Role in Transition of Care From Other Departments to Critical Care Units in Alexandria Main University Hospital.#979772
- Prescribing Trends of Antimicrobials in Obstetric and Gynaecological Inpatients: A Prospective Drug Utilization Study with Concurrent Antimicrobial Stewardship Audit from a Tertiary Care Hospital in Karachi, Pakistan#475789
- Prediction tools to prioritise hospitalised adult patients at risk of drug related problems: An umbrella review.#437288
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive