Research Report · September 2026

Service Quality, Brand Trust, and Perceived Value in Branded Residences

Evidence from consumer evaluations in the United States, with a focused comparison of hospitality and lifestyle brands.

Prepared for Zeynep A. Talu-Balci · Florida Real Estate Broker · DBA Student, Florida International University

01 · Executive Summary

What the evidence says

97quality-screened consumer evaluations
74/23hospitality / lifestyle evaluations
50%variance in perceived value associated with Service Quality
0.31estimated indirect effect through Brand Trust

Consumers who evaluated branded residences more favorably on Service Quality also assigned them greater Perceived Value. Service Quality was strongly associated with Brand Trust. However, after Service Quality was included in the same model, Brand Trust did not provide a statistically distinguishable additional association with Perceived Value (B = 0.29, p = .226). The bootstrapped indirect effect was 0.31, 95% CI [-0.20, 0.72]. Because that interval included zero, the mediation hypothesis was not supported.

The hospitality and lifestyle subsamples were unequal (74 versus 23), which limits the precision of brand-type comparisons. The Service Quality × Brand Type interaction was not statistically significant (B = -0.16, 95% CI [-0.55, 0.24], p = .432). Accordingly, the available data do not provide clear evidence that the Service Quality–Perceived Value relationship differs between hospitality and lifestyle brands.

The practical message: the brand name may open the door, but consumers’ value judgments are closely tied to whether the residence appears capable of delivering a dependable, responsive, professional, and personalized experience. Trust matters at the bivariate level, but in this sample it overlaps so strongly with Service Quality that its distinct mediating role could not be established.
How this report relates to the qualifying-exam manuscript: the manuscript established the theory and validated the measurement instrument using 117 consumer responses; it explicitly reserved hypothesis testing for the dissertation stage. This September 2026 report is a separate, exploratory extension based on the newly supplied Qualtrics export and its stricter complete-case and attention-check rules. Its regression, mediation, and moderation estimates should not be presented as results reported in the qualifying-exam manuscript.
02 · Research Foundation

Why this study matters

Branded residences derive part of their value from affiliation with a recognized hospitality or lifestyle brand. The qualifying-exam manuscript frames them as service systems: the residence is evaluated through architecture, finishes, amenities, and the operating experience that the brand is expected to deliver over time.

The business problem is that brand affiliation does not automatically guarantee consistent service delivery, effective governance, or preservation of long-term value. Developers, brand licensors, sales organizations, buyers, and their advisers therefore need a defensible way to evaluate what the brand relationship is expected to deliver after purchase.

Theoretical foundations

FoundationRole in this research
Consumer-based brand equityBrand knowledge and the strength, favorability, and uniqueness of brand associations help explain why an affiliated name can affect consumer evaluation (Keller, 1993).
Brand extensionPerceived parent-brand quality, fit, and difficulty of execution help explain whether a hospitality or lifestyle brand can credibly extend into residences (Aaker & Keller, 1990).
SERVQUALTangibles, Reliability, Responsiveness, Assurance, and Empathy provide the measurement foundation for the expected residential service experience (Parasuraman, Zeithaml, & Berry, 1988; Akbaba, 2006).
Brand TrustTrust reflects confidence in the brand’s reliability and intentions and is proposed as the mechanism connecting service performance to value (Delgado-Ballester, 2004).
Perceived ValueValue is multidimensional rather than limited to price, incorporating quality, emotional, social, and prestige-related judgments (Sweeney & Soutar, 2001).
Brand TypeHospitality and lifestyle brands may bring different levels of embedded service infrastructure, making Brand Type a meaningful moderator rather than a simple label (O’Neill & Carlbäck, 2011).
Research question: To what extent do SERVQUAL-based service quality dimensions explain Perceived Value in branded residences, and does Brand Trust mediate this relationship while Brand Type (hospitality versus lifestyle) moderates it?
03 · Conceptual Model and Hypotheses

From branded promise to residential value

The qualifying-exam manuscript proposes a moderated-mediation model in which each of the five SERVQUAL dimensions influences Perceived Value directly and indirectly through Brand Trust, while Brand Type conditions the service-quality-to-value relationships.

H1a-e
Tangibles, Reliability, Responsiveness, Assurance, and Empathy each positively influence Brand Trust.
H2a-e
Tangibles, Reliability, Responsiveness, Assurance, and Empathy each positively influence Perceived Value.
H3
Brand Trust positively influences Perceived Value.
H4a-e
Brand Type moderates the relationship between each service quality dimension and Perceived Value.

Model alignment note: the exploratory analysis below aggregates the five dimensions into one overall Service Quality composite and adds a statistical indirect-effect test. It therefore provides an early, simplified examination of the model, not the full dimension-level SEM specified for the dissertation.

03 · Data and Sample

Who entered the analysis

The source was a raw Qualtrics CSV containing consumer responses collected primarily through Prolific. The unit of analysis is one respondent’s evaluation of the single branded-residence category with which that respondent reported the greatest familiarity. Identifiers, contact fields, IP addresses, location coordinates, and free-text email addresses were not used in the statistical analysis and are not reproduced here.

StageCountRule or interpretation
Rows in CSV116Includes two Qualtrics metadata rows, not respondents
Actual response records114After removing the question-text and ImportId rows
Duplicate response attempts6Repeated Prolific IDs; best consenting, most complete record retained
Unique records after deduplication108The nonconsenting attempt shared an ID with a later valid response and was removed
Consenting records108Consent response = Yes
Selected an eligible brand type106Hospitality or lifestyle selected
Complete across 42 focal items102All seven six-item scales answered
Passed both instructed-response checks97Exact requested answers: Agree and Strongly agree
Final analytic sample9774 hospitality; 23 lifestyle

Six repeated response attempts were identified through duplicated Prolific IDs. For each repeated ID, the consenting record with an eligible brand selection, completed status, and greatest survey progress was retained. The principal analytic sample then required complete focal scales and exact passage of both instructed-response checks. This yielded 97 evaluations. Complete-case analysis was used because retained respondents had no missing values on the focal constructs.

Sample profile

CharacteristicCategoryn%
Prior familiarity with branded residencesYes7072.2%
Prior familiarity with branded residencesNo2727.8%
Luxury residential real-estate familiaritySlightly familiar3637.1%
Luxury residential real-estate familiarityModerately familiar2626.8%
Luxury residential real-estate familiarityVery familiar1919.6%
Luxury residential real-estate familiarityNot at all familiar1212.4%
Luxury residential real-estate familiarityExtremely familiar33.1%
Luxury residential real-estate familiarityModerately familiar,Very familiar11.0%
Branded-residence familiaritySlightly familiar3940.2%
Branded-residence familiarityModerately familiar2323.7%
Branded-residence familiarityVery familiar1717.5%
Branded-residence familiarityNot at all familiar1515.5%
Branded-residence familiarityExtremely familiar22.1%
Branded-residence familiarityMissing11.0%
Brand typeHospitality7476.3%
Brand typeLifestyle2323.7%

One raw familiarity response contained two categories selected together and was retained as recorded in the descriptive profile. Experience with branded residences was a multi-select question; contradictory selections were observed in a small number of raw records, so those combinations are not reduced to a single ordinal “experience level.”

04 · Measures

How the constructs were scored

All focal items used seven-point agreement scales from 1 (Strongly Disagree) to 7 (Strongly Agree). Each construct originally contained five positively worded items and one negatively worded item. The seven negative items were first reverse-coded using 8 − response. Reliability was then compared with and without those items. Because removing the reverse-worded item improved internal consistency across all seven construct scales, and the qualifying-exam sensitivity analysis had already identified the reverse items as a distinct wording-related method factor, the principal composites use the mean of the five positively worded items. Overall Service Quality is the mean of the five dimension scores, giving equal weight to Tangibles, Reliability, Responsiveness, Assurance, and Empathy.

No respondent was deleted merely to raise reliability, and no positively worded item was removed. The six-item, correctly reverse-coded results remain in the reliability table as a sensitivity comparison.

05 · Data Quality and Reliability

Strong scales, with a wording caveat

Among the 97 retained cases, there were no missing focal-item responses, no out-of-range item values, and 9 exact straight-lined response patterns across the 35 positively worded focal items. 11 respondent(s) had a within-person standard deviation below .25. The conventional 1.5-IQR lower-duration rule flagged 0 unusually fast retained response(s); duration alone was not used as an exclusion rule.

Scaleα, 6-itemω, 6-itemα, 5 positive itemsω, 5 positive items
Tangibles0.850.880.880.89
Reliability0.790.880.900.91
Responsiveness0.860.920.940.94
Assurance0.790.880.900.90
Empathy0.840.890.910.91
Overall Service Quality0.960.970.970.97
Brand Trust0.860.900.910.91
Perceived Value0.770.850.880.88

The positive-item scales showed high internal consistency. The weaker performance of several correctly reversed items is consistent with a method effect caused by switching item direction, but reliability alone cannot establish why respondents treated those items differently. Their omission is therefore reported transparently and the six-item estimates are preserved for comparison. McDonald’s omega values are one-factor estimates and should be treated as descriptive rather than as a substitute for a confirmatory factor analysis.

06 · Descriptive Findings

Consumers evaluated the concept favorably

ConstructnMeanSDMedianMin–MaxSkewAt/above 6
Tangibles975.940.786.003.60–7.00-0.8660.8%
Reliability975.810.846.003.80–7.00-0.6055.7%
Responsiveness975.960.876.003.00–7.00-1.0467.0%
Assurance975.980.766.004.00–7.00-0.7464.9%
Empathy975.750.876.003.40–7.00-0.7455.7%
Service Quality975.890.735.923.96–7.00-0.6948.5%
Brand Trust975.800.876.003.40–7.00-0.7654.6%
Perceived Value975.830.846.003.80–7.00-0.7151.5%

All construct means were above the midpoint of 4.00. The pattern suggests generally favorable expectations of branded residences, especially on the most highly rated SERVQUAL dimensions. At the same time, the compressed upper-end responses create some ceiling tendency, which can reduce the observed variance available to explain relationships. Skewness values and the percentage scoring at or above 6 are shown so that these distributional features remain visible.

What would influence a purchase

Purchase influence factorMeanSDValid n
Service quality6.101.0397
Lifestyle benefits6.010.9497
Overall branded residential experience5.891.1197
Branded amenities and experiences5.861.0697
Dining, entertainment and social experiences5.861.0597
Property brand5.491.3097
Experiential offerings versus traditional luxury amenities5.471.1797
Membership, partnership or network benefits5.381.1997
Sense of community5.331.1797
Prestige and status5.211.4597

Influence items used the same seven-point agreement coding. These rankings are descriptive and exploratory; they were not included in the primary hypothesis models.

How consumers ranked decision factors

Decision factorMean rankMedian rankRanked in top fiveValid n
Service quality2.432.0092 (94.8%)97
Property design3.203.0084 (86.6%)97
Location4.543.0067 (69.1%)97
Lifestyle positioning5.416.0047 (48.5%)97
Hotel services5.586.0044 (45.4%)97
Dining experiences6.137.0039 (40.2%)97
Investment potential6.448.0042 (43.3%)97
Private club access7.117.0018 (18.6%)97
Community and networking opportunities7.568.0018 (18.6%)97
Developer reputation8.5111.0024 (24.7%)97
Rental-program opportunities9.0910.0010 (10.3%)97

Although the displayed question instructed respondents to rank only five factors, the exported data contain ranks from 1 through 11 for every factor. The report therefore treats Q16 as a complete ordering of all 11 factors; lower means indicate higher priority. This survey-programming discrepancy should be corrected in future waves.

07 · Exploratory Model Results

Service Quality, trust, and value moved together

Construct 1Construct 2r95% CIp
Service QualityBrand Trust0.89[0.85, 0.93]< .001
Service QualityPerceived Value0.71[0.59, 0.80]< .001
Brand TrustPerceived Value0.69[0.57, 0.78]< .001
Exploratory testPathEffect95% CIp / criterionModel informationFinding
E1Overall Service Quality → Perceived Value0.82[0.66, 0.97]< .001R² = 0.50Positive association
E2Overall Service Quality → Brand Trust1.06[0.95, 1.17]< .001R² = 0.80Positive association
E3Brand Trust → Perceived Value, controlling for overall Service Quality0.29[-0.18, 0.76]= .226Model R² = 0.52Not statistically distinguishable
E4Indirect path through Brand Trust0.31[-0.20, 0.72]Bootstrap CI5,000 resamplesNot statistically distinguishable
E1

Service Quality was positively associated with Perceived Value (B = 0.82, 95% CI [0.66, 0.97], p < .001). A one-point increase in the Service Quality composite corresponded statistically to a 0.82-point increase in Perceived Value. The model accounted for 50.3% of observed variance.

E2

Service Quality was positively associated with Brand Trust (B = 1.06, 95% CI [0.95, 1.17], p < .001). Consumers who perceived stronger service performance also expressed greater confidence in the affiliated brand.

E3

When both predictors were entered, Brand Trust’s unique coefficient was positive but not statistically distinguishable from zero (B = 0.29, 95% CI [-0.18, 0.76], p = .226). The direct Service Quality coefficient was 0.51 (95% CI [-0.01, 1.03], p = .056). Service Quality and Brand Trust correlated at r = 0.89, producing a variance-inflation factor of approximately 4.99; this substantial overlap makes their unique coefficients less precise.

E4

The estimated indirect effect through Brand Trust was 0.31, with a 5,000-resample percentile bootstrap 95% CI of [-0.20, 0.72]. Because the interval included zero, the pattern is consistent with no statistically distinguishable indirect effect. This is statistical mediation in cross-sectional data, not evidence that Service Quality temporally causes trust and value.

08 · Brand-Type Comparison and Moderation

Hospitality versus lifestyle brands

ConstructHospitality M (SD), n=74Lifestyle M (SD), n=23Mean difference H−L95% CIpHedges g
Tangibles6.01 (0.73)5.71 (0.89)0.30[-0.12, 0.71]= .1580.38
Reliability5.88 (0.75)5.56 (1.06)0.33[-0.16, 0.81]= .1770.39
Responsiveness6.06 (0.76)5.63 (1.13)0.43[-0.08, 0.94]= .0970.50
Assurance6.03 (0.72)5.83 (0.88)0.20[-0.21, 0.61]= .3270.26
Empathy5.83 (0.81)5.50 (1.02)0.34[-0.14, 0.81]= .1590.39
Service Quality5.96 (0.67)5.65 (0.88)0.32[-0.09, 0.72]= .1200.43
Brand Trust5.90 (0.83)5.50 (0.96)0.40[-0.05, 0.85]= .0800.46
Perceived Value5.87 (0.79)5.68 (1.01)0.19[-0.27, 0.66]= .4040.23

Welch’s independent-samples tests were used because the hospitality and lifestyle groups were unequal in size and equal variances were not assumed. Hedges’ g expresses the standardized hospitality-minus-lifestyle difference. Group mean differences are descriptive comparisons, not moderation tests.

Interaction test

TermB95% CIpInterpretation
Service Quality (hospitality slope)0.88[0.72, 1.03]< .001Association within the hospitality reference group
Lifestyle brand type0.05[-0.31, 0.40]= .801Group difference at the sample-mean Service Quality score
Service Quality × Lifestyle-0.16[-0.55, 0.24]= .432Difference between lifestyle and hospitality slopes

The interaction model explained 50.8% of variance in Perceived Value. The interaction coefficient directly tests whether the Service Quality slope differs by brand type. It was not statistically distinguishable from zero; therefore, a simple group difference should not be described as evidence of moderation. The smaller lifestyle group reduces power and widens uncertainty around that comparison.

09 · Discussion

Implications for branded-residence strategy

The findings place the residential operating experience at the center of perceived value. Architecture, finishes, and amenities remain visible components of the offer, but the broader Service Quality composite also captures whether a residence appears dependable, responsive, professionally managed, and attentive to individual needs. For developers and brand partners, that suggests the value proposition cannot end with design, a logo, or a list of amenities. Consumers appear to evaluate whether the brand promise can plausibly survive everyday residential operations.

Brand Trust was strongly related to both Service Quality and Perceived Value in the simple correlations, so it remains strategically relevant. Yet the regression and bootstrap results did not isolate the proposed mediating role. In practical terms, respondents may have treated trustworthy brand delivery and strong service capability as closely connected aspects of the same overall evaluation. Sales and marketing teams should still substantiate the brand promise with operational evidence, while future research should refine the measures so that trust and service can be distinguished more clearly.

The absence of clear moderation evidence, if read alongside the unequal group sizes, should be treated cautiously. It does not establish that hospitality and lifestyle brands work identically. It indicates that this sample does not estimate a sufficiently precise difference in the focal slope. A larger, more balanced lifestyle sample would provide a stronger test.

10 · Limitations

What this study cannot establish

  • The cross-sectional design cannot establish temporal order or causality.
  • All principal variables were self-reported in one questionnaire, creating potential common-method inflation.
  • The Prolific sample is purposive rather than probability-based and should not be generalized to all U.S. luxury consumers.
  • Many respondents evaluated expectations or perceptions of a category rather than reporting ownership experience with a specific property.
  • The retained lifestyle subsample is smaller than the hospitality subsample, limiting power for group and interaction tests.
  • Seven reverse-worded items behaved differently from their positive counterparts. The main analysis omits them transparently, but this measurement decision should be re-examined through cognitive pretesting and CFA in future research.
  • The sample is modest for complex latent-variable modeling. CFA and structural equation modeling were intentionally not forced into this report.
  • No demographic items such as age, income, gender, education, or geography were present in the supplied focal survey export, limiting assessment of sample composition and omitted-variable explanations.
11 · Conclusion

Value begins with credible delivery

Within this consumer sample, Service Quality, Brand Trust, and Perceived Value were closely related. The clearest distinct predictor of Perceived Value was Service Quality; the proposed indirect role of Brand Trust was not confirmed. The results do not reduce branded residences to service alone, nor do they establish a causal mechanism. They do show that the operating promise deserves the same strategic attention as architecture, amenities, and brand visibility.

12 · One-Page Practitioner Summary

What Consumer Evaluations Reveal About Value and Trust in Branded Residences

The central finding: consumers assigned greater value to branded residences when they also expected stronger service performance. Brand Trust was strongly related to both concepts, but the analysis did not confirm that trust statistically mediated the Service Quality–value relationship.

For the people creating, operating, and selling branded residences, the strongest supported result is straightforward: consumers do not evaluate the residence only through the physical product. They also make a judgment about whether the experience will be delivered consistently after purchase. Reliability, responsiveness, professional competence, and personalized attention become part of the property’s perceived value.

What developers and brands should do

  • Make the operating promise specific. Replace broad luxury language with evidence of how services will be delivered, monitored, and maintained.
  • Treat trust as an asset that must be operationalized. Explain the brand’s continuing role, quality-control mechanisms, management responsibilities, and resident-protection standards.
  • Connect amenities to lived value. Show how design, facilities, and branded experiences improve daily residential life rather than presenting them as isolated features.
  • Prepare sales teams to discuss execution. Buyers need credible answers about staffing, response standards, fees, governance, and long-term service consistency.
  • Do not overstate brand-type differences. This sample did not provide a sufficiently clear interaction result to conclude that the Service Quality–value relationship differs between hospitality and lifestyle brands.

The strongest positioning is therefore not simply that a residence carries a recognized name. It is that the name is attached to a credible system for delivering a distinctive residential experience over time.

13 · Selected References

Sources underlying the conceptual model

Selected from the final qualifying-exam manuscript. The complete academic reference list remains in the manuscript.

  • Aaker, D. A., & Keller, K. L. (1990). Consumer evaluations of brand extensions. Journal of Marketing, 54(1), 27–41.
  • Akbaba, A. (2006). Measuring service quality in the hotel industry. International Journal of Hospitality Management, 25(2), 170–192.
  • Beracha, E., Feng, Z., Hardin, W. G., & Pennathur, A. (2025). The market for high-end luxury residential properties. Journal of Housing Research, 34(2), 157–179.
  • Delgado-Ballester, E. (2004). Applicability of a brand trust scale across product categories. European Journal of Marketing, 38(5/6), 573–592.
  • Keller, K. L. (1993). Conceptualizing, measuring, and managing customer-based brand equity. Journal of Marketing, 57(1), 1–22.
  • O’Neill, J. W., & Carlbäck, M. (2011). Do brands matter? International Journal of Hospitality Management, 30(3), 515–521.
  • Parasuraman, A., Zeithaml, V. A., & Berry, L. L. (1988). SERVQUAL. Journal of Retailing, 64(1), 12–40.
  • Sweeney, J. C., & Soutar, G. N. (2001). Consumer perceived value. Journal of Retailing, 77(2), 203–220.
  • Weijters, B., Baumgartner, H., & Schillewaert, N. (2013). Reversed item bias: An integrative model. Psychological Methods, 18(3), 320–334.
14 · Technical Appendix

Audit trail and reproducibility

Data-cleaning decision log

  1. Read the raw Qualtrics CSV without altering it.
  2. Removed the first two embedded metadata rows from respondent counts.
  3. Removed repeated attempts by Prolific ID, retaining the consenting, eligible, most complete record.
  4. Excluded the nonconsenting record.
  5. Required selection of hospitality or lifestyle brand type.
  6. Mapped seven-point agreement text to integers 1–7 and checked range validity.
  7. Required complete responses across the 42 focal scale items.
  8. Required exact responses to both instructed-response checks.
  9. Reverse-coded each negative item as 8 − response for sensitivity analysis.
  10. Constructed primary scales from the five positively worded items because this was theoretically transparent, consistent with the prior removal decision, and yielded stronger internal consistency.
  11. Constructed Service Quality as the unweighted mean of its five dimension scores.
  12. Used complete-case analysis; retained focal composites had no missing data.

Statistical methods

Analyses were performed in Python using pandas, NumPy, SciPy, scikit-learn, and statsmodels. Descriptives include means, standard deviations, medians, ranges, skewness, and upper-end concentration. Reliability includes Cronbach’s alpha and descriptive one-factor omega estimates. Pearson correlations include Fisher-transformed 95% confidence intervals. Regression models use HC3 heteroskedasticity-consistent standard errors. The indirect effect uses 5,000 nonparametric bootstrap resamples with a fixed seed. Brand-type mean comparisons use Welch’s t tests and Hedges’ g. Moderation is tested with a mean-centered Service Quality × Lifestyle interaction.

Assumption checks

All retained composite scores fell within the intended 1–7 range. Composite distributions showed the skewness reported in the descriptive table. HC3 inference and bootstrapping reduce reliance on homoskedastic and normal-error assumptions. Linearity was assessed through the fitted continuous models; no causal or temporal interpretation is made. Unequal group sizes were addressed with Welch tests and explicitly discussed as a power limitation.

Relationship to the dissertation model

The qualifying-exam manuscript provides the authoritative H1a-e through H4a-e wording. The present composite-score analysis is exploratory and does not replace the planned dimension-level Confirmatory Factor Analysis and Structural Equation Modeling of the full moderated-mediation model.

Reproducible analysis code
import html
import json
import math
from pathlib import Path

import numpy as np
import pandas as pd
from scipy import stats


RAW = Path("upload/Luxury Consumers Mixed Hospitality and Lifestyle Prolific Data_September 20, 2026_10.29(1).csv")
OUT = Path("outputs/branded_residence_consumer_report.html")
WP_OUT = Path("outputs/branded_residence_consumer_report_wordpress.html")
RNG = np.random.default_rng(20260920)

LIKERT = {
    "Strongly Disagree": 1, "Strongly disagree": 1,
    "Disagree": 2,
    "Somewhat disagree": 3,
    "Neither agree nor disagree": 4, "Neither Agree nor Disagree": 4,
    "Somewhat agree": 5, "Somewhat Agree": 5,
    "Agree": 6,
    "Strongly agree": 7, "Strongly Agree": 7,
}

SCALES = {
    "Tangibles": ["Q6\u00a0_1", "Q6\u00a0_2", "Q6\u00a0_3", "Q6\u00a0_4", "Q6\u00a0_5", "Q6\u00a0_6"],
    "Reliability": ["Q8\u00a0_1", "Q8\u00a0_2", "Q8\u00a0_3", "Q8\u00a0_4", "Q8\u00a0_5", "Q8\u00a0_6"],
    "Responsiveness": ["Q9\u00a0_1", "Q9\u00a0_2", "Q9\u00a0_3", "Q9\u00a0_4", "Q9\u00a0_5", "Q9\u00a0_6"],
    "Assurance": ["Q10\u00a0_1", "Q10\u00a0_2", "Q10\u00a0_3", "Q10\u00a0_4", "Q10\u00a0_5", "Q10\u00a0_6"],
    "Empathy": [" _1", " _2", " _3", " _4", " _5", " _6"],
    "Brand Trust": [" _1.1", " _2.1", " _3.1", " _4.1", " _5.1", " _6.1"],
    "Perceived Value": ["QID55_1", "QID55_2", "QID55_3", "QID55_4", "QID55_5", "QID55_6"],
}
REVERSE = {v[-1] for v in SCALES.values()}
POSITIVE = {k: v[:-1] for k, v in SCALES.items()}
SQ_DIMS = ["Tangibles", "Reliability", "Responsiveness", "Assurance", "Empathy"]


def fmt(x, digits=2):
    if x is None or pd.isna(x): return "—"
    return f"{x:.{digits}f}"


def p_fmt(p):
    if pd.isna(p): return "—"
    return "&lt; .001" if p < .001 else f"= {p:.3f}".replace("0.", ".")


def ci_fmt(lo, hi):
    return f"[{lo:.2f}, {hi:.2f}]"


def alpha(frame):
    x = frame.dropna()
    k = x.shape[1]
    if k < 2 or len(x) < 3: return np.nan
    variances = x.var(ddof=1).sum()
    total_var = x.sum(axis=1).var(ddof=1)
    return k / (k - 1) * (1 - variances / total_var)


def omega_one_factor(frame):
    """Omega total from a one-factor standardized common-factor model."""
    from sklearn.decomposition import FactorAnalysis
    x = frame.dropna().astype(float)
    if len(x) < 5: return np.nan
    z = (x - x.mean()) / x.std(ddof=1)
    fa = FactorAnalysis(n_components=1, random_state=20260920).fit(z)
    load = fa.components_[0]
    # Orienting the factor does not affect omega.
    uniq = fa.noise_variance_
    return (load.sum() ** 2) / ((load.sum() ** 2) + uniq.sum())


def coef_ci(model, name):
    return model.params[name], model.pvalues[name], *model.conf_int().loc[name].tolist()


class OLSResult:
    def __init__(self, y, X, names):
        y = np.asarray(y, dtype=float)
        X = np.asarray(X, dtype=float)
        self.names = names
        n, k = X.shape
        inv = np.linalg.inv(X.T @ X)
        beta = inv @ X.T @ y
        resid = y - X @ beta
        hat = np.sum((X @ inv) * X, axis=1)
        # MacKinnon-White HC3 covariance.
        scaled = resid / (1 - hat)
        meat = X.T @ ((scaled ** 2)[:, None] * X)
        cov = inv @ meat @ inv
        se = np.sqrt(np.diag(cov))
        z = beta / se
        p = 2 * stats.norm.sf(np.abs(z))
        ci = np.column_stack([beta - 1.96*se, beta + 1.96*se])
        self.params = pd.Series(beta, index=names)
        self.pvalues = pd.Series(p, index=names)
        self._ci = pd.DataFrame(ci, index=names, columns=[0,1])
        self.rsquared = 1 - np.sum(resid**2)/np.sum((y-y.mean())**2)

    def conf_int(self):
        return self._ci


def ols_hc3(y, frame):
    names = ["const"] + list(frame.columns)
    X = np.column_stack([np.ones(len(frame)), frame.to_numpy(dtype=float)])
    return OLSResult(y, X, names)


def ols_beta(y, frame):
    X = np.column_stack([np.ones(len(frame)), frame.to_numpy(dtype=float)])
    return pd.Series(np.linalg.lstsq(X, np.asarray(y,dtype=float), rcond=None)[0], index=["const"]+list(frame.columns))


def welch(a, b):
    a, b = pd.Series(a).dropna(), pd.Series(b).dropna()
    t, p = stats.ttest_ind(a, b, equal_var=False)
    diff = a.mean() - b.mean()
    se = math.sqrt(a.var(ddof=1)/len(a) + b.var(ddof=1)/len(b))
    df = (a.var(ddof=1)/len(a) + b.var(ddof=1)/len(b))**2 / (
        (a.var(ddof=1)/len(a))**2/(len(a)-1) + (b.var(ddof=1)/len(b))**2/(len(b)-1))
    crit = stats.t.ppf(.975, df)
    pooled = math.sqrt(((len(a)-1)*a.var(ddof=1)+(len(b)-1)*b.var(ddof=1))/(len(a)+len(b)-2))
    d = diff/pooled
    # Hedges small-sample correction.
    g = d * (1 - 3/(4*(len(a)+len(b))-9))
    return dict(diff=diff, t=t, p=p, lo=diff-crit*se, hi=diff+crit*se, g=g, df=df)


def bootstrap_mediation(data, reps=5000):
    d = data[["Service Quality", "Brand Trust", "Perceived Value"]].dropna()
    n = len(d)
    def estimates(z):
        a = ols_beta(z["Brand Trust"], z[["Service Quality"]])["Service Quality"]
        bm = ols_beta(z["Perceived Value"], z[["Service Quality", "Brand Trust"]])
        b = bm["Brand Trust"]
        direct = bm["Service Quality"]
        total = ols_beta(z["Perceived Value"], z[["Service Quality"]])["Service Quality"]
        return total, direct, a*b, a, b
    point = estimates(d)
    boot = np.empty((reps, 5))
    for i in range(reps):
        idx = RNG.integers(0, n, n)
        boot[i] = estimates(d.iloc[idx])
    cis = np.percentile(boot, [2.5, 97.5], axis=0)
    return point, cis, boot


def table(headers, rows, first_left=True):
    hs = "".join(f"<th>{html.escape(str(h))}</th>" for h in headers)
    body = []
    for row in rows:
        cells = []
        for j, val in enumerate(row):
            tag = "th scope='row'" if j == 0 and first_left else "td"
            cells.append(f"<{tag}>{val}</{tag.split()[0]}>")
        body.append("<tr>" + "".join(cells) + "</tr>")
    return f"<div class='table-wrap'><table><thead><tr>{hs}</tr></thead><tbody>{''.join(body)}</tbody></table></div>"


# ---------- Data audit and preparation ----------
raw_export = pd.read_csv(RAW, dtype=str)
question_row = raw_export.iloc[0].copy()
data = raw_export.iloc[2:].copy()  # Qualtrics question-text and ImportId rows
original_records = len(data)

# De-duplicate Prolific IDs by retaining the most analytically complete consenting record.
data["_progress"] = pd.to_numeric(data["Progress"], errors="coerce").fillna(-1)
data["_consent"] = data[" "].eq("Yes, I agree to participate")
data["_brand"] = data["Q1 "].notna()
data["_finished"] = data["Finished"].eq("True")
data["_score"] = data["_consent"].astype(int)*10000 + data["_brand"].astype(int)*1000 + data["_finished"].astype(int)*100 + data["_progress"]
with_pid = data[data["PROLIFIC_PID"].notna()].sort_values("_score", ascending=False).drop_duplicates("PROLIFIC_PID", keep="first")
without_pid = data[data["PROLIFIC_PID"].isna()]
dedup = pd.concat([with_pid, without_pid], ignore_index=True)
duplicate_rows_removed = len(data) - len(dedup)

# Numeric item frame.
items = [c for cols in SCALES.values() for c in cols]
num = dedup[items].replace(LIKERT).apply(pd.to_numeric, errors="coerce")
for c in REVERSE:
    num[c] = 8 - num[c]
for c in items:
    dedup[c + "__n"] = num[c]

consenting = dedup[dedup["_consent"]].copy()
brand_eligible = consenting[consenting["Q1 "].notna()].copy()
complete_items_mask = brand_eligible[[c+"__n" for c in items]].notna().all(axis=1)
complete_scale = brand_eligible[complete_items_mask].copy()
attn1 = complete_scale["Q7\u00a0"].eq("Agree")
attn2 = complete_scale["Q11"].eq("Strongly agree")
analytic = complete_scale[attn1 & attn2].copy()

for name, cols in SCALES.items():
    rcols = [c+"__n" for c in cols]
    pcols = [c+"__n" for c in POSITIVE[name]]
    analytic[name + " (all items)"] = analytic[rcols].mean(axis=1)
    analytic[name] = analytic[pcols].mean(axis=1)
analytic["Service Quality"] = analytic[SQ_DIMS].mean(axis=1)
analytic["Brand Type"] = analytic["Q1 "].map({
    "Hospitality-branded residences": "Hospitality",
    "Lifestyle-branded residences": "Lifestyle",
})
analytic["Lifestyle"] = (analytic["Brand Type"] == "Lifestyle").astype(int)

# Quality flags.
positive_item_n = [c+"__n" for cols in POSITIVE.values() for c in cols]
analytic["response_sd"] = analytic[positive_item_n].std(axis=1)
straightline_n = int((analytic["response_sd"] == 0).sum())
low_variance_n = int((analytic["response_sd"] < .25).sum())
dur = pd.to_numeric(analytic["Duration (in seconds)"], errors="coerce")
q1, q3 = dur.quantile([.25, .75]); iqr = q3-q1
fast_cut = max(0, q1-1.5*iqr)
fast_n = int((dur < fast_cut).sum())

# Reliability comparison.
rel_rows = []
for name, cols in SCALES.items():
    allf = analytic[[c+"__n" for c in cols]].astype(float)
    posf = analytic[[c+"__n" for c in POSITIVE[name]]].astype(float)
    rel_rows.append((name, alpha(allf), omega_one_factor(allf), alpha(posf), omega_one_factor(posf)))
sq_pos = analytic[[c+"__n" for dim in SQ_DIMS for c in POSITIVE[dim]]].astype(float)
sq_all = analytic[[c+"__n" for dim in SQ_DIMS for c in SCALES[dim]]].astype(float)
rel_rows.insert(5, ("Overall Service Quality", alpha(sq_all), omega_one_factor(sq_all), alpha(sq_pos), omega_one_factor(sq_pos)))

# Descriptives.
constructs = SQ_DIMS + ["Service Quality", "Brand Trust", "Perceived Value"]
desc = []
for c in constructs:
    x = analytic[c]
    desc.append((c, x.count(), x.mean(), x.std(ddof=1), x.median(), x.min(), x.max(), x.skew(), int(x.isna().sum()), float((x>=6).mean())))

# Correlations with 95% Fisher intervals.
corr_rows = []
for i, a in enumerate(constructs):
    for b in constructs[i+1:]:
        x, y = analytic[a], analytic[b]
        r, p = stats.pearsonr(x, y)
        z = np.arctanh(r); se = 1/math.sqrt(len(x)-3)
        lo, hi = np.tanh([z-1.96*se, z+1.96*se])
        corr_rows.append((a, b, r, p, lo, hi))

# Core regressions with heteroskedasticity-consistent standard errors.
m_sq_pv = ols_hc3(analytic["Perceived Value"], analytic[["Service Quality"]])
m_sq_bt = ols_hc3(analytic["Brand Trust"], analytic[["Service Quality"]])
m_both = ols_hc3(analytic["Perceived Value"], analytic[["Service Quality", "Brand Trust"]])
med_points, med_cis, _ = bootstrap_mediation(analytic, reps=5000)
total, direct, indirect, path_a, path_b = med_points

# Group comparisons and moderation.
group_rows = []
for c in constructs:
    h = analytic.loc[analytic["Brand Type"]=="Hospitality", c]
    l = analytic.loc[analytic["Brand Type"]=="Lifestyle", c]
    w = welch(h, l)
    group_rows.append((c, h.mean(), h.std(ddof=1), l.mean(), l.std(ddof=1), w))

mod = analytic.copy()
mod["SQ_centered"] = mod["Service Quality"] - mod["Service Quality"].mean()
mod["SQ_x_Lifestyle"] = mod["SQ_centered"] * mod["Lifestyle"]
m_mod = ols_hc3(mod["Perceived Value"], mod[["SQ_centered", "Lifestyle", "SQ_x_Lifestyle"]])

# Familiarity and experience profiles (analytic sample).
profile_vars = {
    "Prior familiarity with branded residences": "Q2",
    "Luxury residential real-estate familiarity": "Q3",
    "Branded-residence familiarity": "Q4",
}

# Purchase influence and ranking.
bm_labels = ["Property brand", "Service quality", "Prestige and status", "Lifestyle benefits", "Branded amenities and experiences", "Dining, entertainment and social experiences", "Sense of community", "Membership, partnership or network benefits", "Overall branded residential experience", "Experiential offerings versus traditional luxury amenities"]
bm_rows=[]
for c,label in zip([f"Q15_{i}" for i in range(1,11)],bm_labels):
    x=analytic[c].replace(LIKERT).pipe(pd.to_numeric, errors="coerce")
    bm_rows.append((label, x.mean(), x.std(ddof=1), len(x.dropna())))
bm_rows.sort(key=lambda z:z[1], reverse=True)

rank_labels=["Service quality","Property design","Lifestyle positioning","Hotel services","Dining experiences","Private club access","Community and networking opportunities","Investment potential","Rental-program opportunities","Location","Developer reputation"]
rank_rows=[]
for c,label in zip([f"Q16_{i}" for i in range(1,12)],rank_labels):
    x=pd.to_numeric(analytic[c],errors="coerce")
    rank_rows.append((label,x.mean(),x.median(),int((x<=5).sum()),len(x.dropna())))
rank_rows.sort(key=lambda z:z[1])

# ---------- HTML content ----------
n = len(analytic)
brand_counts = analytic["Brand Type"].value_counts()
h_n = int(brand_counts.get("Hospitality", 0)); l_n = int(brand_counts.get("Lifestyle", 0))
sq_pv = coef_ci(m_sq_pv, "Service Quality")
sq_bt = coef_ci(m_sq_bt, "Service Quality")
bt_pv = coef_ci(m_both, "Brand Trust")
direct_r = coef_ci(m_both, "Service Quality")
mod_i = coef_ci(m_mod, "SQ_x_Lifestyle")
ind_lo, ind_hi = med_cis[:,2]
med_pattern = "partial mediation" if direct_r[1] < .05 and ind_lo*ind_hi>0 else ("indirect-only mediation" if direct_r[1] >= .05 and ind_lo*ind_hi>0 else "no statistically distinguishable indirect effect")

desc_table = table(
    ["Construct", "n", "Mean", "SD", "Median", "Min–Max", "Skew", "At/above 6"],
    [[html.escape(r[0]), r[1], fmt(r[2]), fmt(r[3]), fmt(r[4]), f"{fmt(r[5])}–{fmt(r[6])}", fmt(r[7]), f"{r[9]*100:.1f}%"] for r in desc]
)
rel_table = table(
    ["Scale", "α, 6-item", "ω, 6-item", "α, 5 positive items", "ω, 5 positive items"],
    [[html.escape(r[0]), fmt(r[1]), fmt(r[2]), fmt(r[3]), fmt(r[4])] for r in rel_rows]
)
corr_table = table(
    ["Construct 1", "Construct 2", "r", "95% CI", "p"],
    [[html.escape(a), html.escape(b), fmt(r), ci_fmt(lo,hi), p_fmt(p)] for a,b,r,p,lo,hi in corr_rows if a in ["Service Quality","Brand Trust"] and b in ["Brand Trust","Perceived Value"]]
)
hyp_rows = [
    ["H1", "Service Quality → Perceived Value", fmt(sq_pv[0]), ci_fmt(sq_pv[2],sq_pv[3]), p_fmt(sq_pv[1]), f"R² = {m_sq_pv.rsquared:.2f}", "Supported" if sq_pv[1]<.05 and sq_pv[0]>0 else "Not supported"],
    ["H2", "Service Quality → Brand Trust", fmt(sq_bt[0]), ci_fmt(sq_bt[2],sq_bt[3]), p_fmt(sq_bt[1]), f"R² = {m_sq_bt.rsquared:.2f}", "Supported" if sq_bt[1]<.05 and sq_bt[0]>0 else "Not supported"],
    ["H3", "Brand Trust → Perceived Value, controlling for Service Quality", fmt(bt_pv[0]), ci_fmt(bt_pv[2],bt_pv[3]), p_fmt(bt_pv[1]), f"Model R² = {m_both.rsquared:.2f}", "Supported" if bt_pv[1]<.05 and bt_pv[0]>0 else "Not supported"],
    ["H4", "Indirect path through Brand Trust", fmt(indirect), ci_fmt(ind_lo,ind_hi), "Bootstrap CI", "5,000 resamples", "Supported" if ind_lo*ind_hi>0 and indirect>0 else "Not supported"],
]
hyp_table = table(["Working hypothesis", "Test", "Effect", "95% CI", "p / criterion", "Model information", "Finding"], hyp_rows)

group_table = table(
    ["Construct", f"Hospitality M (SD), n={h_n}", f"Lifestyle M (SD), n={l_n}", "Mean difference H−L", "95% CI", "p", "Hedges g"],
    [[html.escape(c), f"{fmt(hm)} ({fmt(hs)})", f"{fmt(lm)} ({fmt(ls)})", fmt(w['diff']), ci_fmt(w['lo'],w['hi']), p_fmt(w['p']), fmt(w['g'])] for c,hm,hs,lm,ls,w in group_rows]
)
bm_table = table(["Purchase influence factor", "Mean", "SD", "Valid n"], [[html.escape(a),fmt(b),fmt(c),d] for a,b,c,d in bm_rows])
rank_table = table(["Decision factor", "Mean rank", "Median rank", "Ranked in top five", "Valid n"], [[html.escape(a),fmt(b),fmt(c),f"{d} ({d/e*100:.1f}%)",e] for a,b,c,d,e in rank_rows])

sample_rows=[]
for label,c in profile_vars.items():
    counts=analytic[c].value_counts(dropna=False)
    for val,count in counts.items():
        if pd.isna(val): val="Missing"
        sample_rows.append([html.escape(label),html.escape(str(val)),int(count),f"{count/n*100:.1f}%"])
sample_rows += [["Brand type", "Hospitality", h_n, f"{h_n/n*100:.1f}%"],["Brand type","Lifestyle",l_n,f"{l_n/n*100:.1f}%"]]
sample_table=table(["Characteristic","Category","n","%"],sample_rows)

audit_rows = [
    ["Rows in CSV", "116", "Includes two Qualtrics metadata rows, not respondents"],
    ["Actual response records", str(original_records), "After removing the question-text and ImportId rows"],
    ["Duplicate response attempts", str(duplicate_rows_removed), "Repeated Prolific IDs; best consenting, most complete record retained"],
    ["Unique records after deduplication", str(len(dedup)), "The nonconsenting attempt shared an ID with a later valid response and was removed"],
    ["Consenting records", str(len(consenting)), "Consent response = Yes"],
    ["Selected an eligible brand type", str(len(brand_eligible)), "Hospitality or lifestyle selected"],
    ["Complete across 42 focal items", str(len(complete_scale)), "All seven six-item scales answered"],
    ["Passed both instructed-response checks", str(n), "Exact requested answers: Agree and Strongly agree"],
    ["Final analytic sample", str(n), f"{h_n} hospitality; {l_n} lifestyle"],
]
audit_table=table(["Stage","Count","Rule or interpretation"],audit_rows)

moderation_table = table(
    ["Term", "B", "95% CI", "p", "Interpretation"],
    [
        ["Service Quality (hospitality slope)", fmt(m_mod.params['SQ_centered']), ci_fmt(*m_mod.conf_int().loc['SQ_centered']), p_fmt(m_mod.pvalues['SQ_centered']), "Association within the hospitality reference group"],
        ["Lifestyle brand type", fmt(m_mod.params['Lifestyle']), ci_fmt(*m_mod.conf_int().loc['Lifestyle']), p_fmt(m_mod.pvalues['Lifestyle']), "Group difference at the sample-mean Service Quality score"],
        ["Service Quality × Lifestyle", fmt(mod_i[0]), ci_fmt(mod_i[2],mod_i[3]), p_fmt(mod_i[1]), "Difference between lifestyle and hospitality slopes"],
    ]
)

all_vs_pos = {r[0]: r for r in rel_rows}
rev_worse = sum(1 for r in rel_rows if not pd.isna(r[1]) and r[3] > r[1])

css = """
<style>
.br-report{--ink:#17130e;--muted:#6e655b;--gold:#b8923d;--gold2:#ddc178;--ivory:#f7f2e9;--paper:#fffdf8;--line:#ddd2bf;max-width:1120px;margin:0 auto;background:var(--paper);color:var(--ink);font-family:Montserrat,Arial,sans-serif;line-height:1.68;box-shadow:0 12px 50px rgba(26,19,8,.12)}
.br-report *{box-sizing:border-box}.br-report .hero{padding:72px 7%;background:linear-gradient(135deg,#0e0e0e,#242018);color:#fff}.br-report .eyebrow{color:var(--gold2);font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;font-weight:700}.br-report h1,.br-report h2,.br-report h3{font-family:"Cormorant Garamond",Georgia,serif;line-height:1.12}.br-report h1{font-size:clamp(2.4rem,6vw,5rem);max-width:900px;margin:.25em 0}.br-report .deck{font-size:1.12rem;max-width:780px;color:#e8dfd1}.br-report .meta{margin-top:30px;color:#c9bfae;font-size:.88rem}.br-report nav{position:sticky;top:0;z-index:3;background:#171717;color:#fff;padding:12px 5%;overflow:auto;white-space:nowrap}.br-report nav a{color:#eee;text-decoration:none;margin-right:22px;font-size:.83rem}.br-report nav a:hover{color:var(--gold2)}.br-report main{padding:42px 7% 70px}.br-report section{scroll-margin-top:65px;margin:0 0 58px}.br-report h2{font-size:2.25rem;margin:0 0 18px;border-bottom:1px solid var(--line);padding-bottom:11px}.br-report h3{font-size:1.55rem;margin:30px 0 10px}.br-report p{max-width:900px}.br-report .callout{background:var(--ivory);border-left:5px solid var(--gold);padding:22px 25px;margin:25px 0}.br-report .kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:28px 0}.br-report .kpi{background:#171717;color:white;padding:20px}.br-report .kpi b{display:block;color:var(--gold2);font-family:Georgia,serif;font-size:2rem}.br-report .kpi span{font-size:.78rem;color:#ddd}.br-report .table-wrap{overflow-x:auto;margin:20px 0 32px;border:1px solid var(--line)}.br-report table{border-collapse:collapse;width:100%;font-size:.84rem}.br-report th,.br-report td{padding:10px 12px;border-bottom:1px solid #e8dfd1;text-align:right;vertical-align:top}.br-report thead th{background:#201d18;color:white;font-weight:600}.br-report tbody th,.br-report th:first-child,.br-report td:first-child{text-align:left}.br-report tbody tr:nth-child(even){background:#fbf7ef}.br-report .note{font-size:.84rem;color:var(--muted)}.br-report .result{display:grid;grid-template-columns:120px 1fr;gap:18px;border-top:1px solid var(--line);padding:20px 0}.br-report .result strong{color:#765b1c}.br-report .badge{display:inline-block;padding:3px 9px;background:#e9ddc1;color:#4d3b13;border-radius:999px;font-size:.72rem;font-weight:700}.br-report details{border:1px solid var(--line);padding:14px 18px;margin:12px 0;background:#fff}.br-report summary{cursor:pointer;font-weight:700}.br-report pre{overflow:auto;background:#111;color:#eee;padding:18px;font-size:.75rem;line-height:1.45}.br-report footer{background:#111;color:#cfc6b7;padding:32px 7%;font-size:.82rem}.br-report .warning{border:1px solid #c49c45;background:#fff8e7;padding:16px 18px}.br-report ul{max-width:900px}.br-report li{margin:.4em 0}@media(max-width:760px){.br-report .kpis{grid-template-columns:repeat(2,1fr)}.br-report .result{grid-template-columns:1fr}.br-report main{padding-left:5%;padding-right:5%}.br-report th,.br-report td{padding:8px;font-size:.78rem}}
</style>
"""

source_code = Path(__file__).read_text(encoding="utf-8")

report = f"""<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Consumer Evaluations of Branded Residences</title>{css}</head><body>
<article class="br-report">
<header class="hero"><div class="eyebrow">Research Report · September 2026</div><h1>Service Quality, Brand Trust, and Perceived Value in Branded Residences</h1><p class="deck">Evidence from consumer evaluations in the United States, with a focused comparison of hospitality and lifestyle brands.</p><p class="meta">Prepared for Zeynep A. Talu-Balci · Florida Real Estate Broker · DBA Student, Florida International University</p></header>
<nav><a href="#executive">Executive Summary</a><a href="#purpose">Model</a><a href="#data">Data</a><a href="#quality">Quality</a><a href="#results">Results</a><a href="#groups">Brand Type</a><a href="#practitioner">Practitioner Summary</a><a href="#appendix">Appendix</a></nav>
<main>
<section id="executive"><div class="eyebrow">01 · Executive Summary</div><h2>What the evidence says</h2>
<div class="kpis"><div class="kpi"><b>{n}</b><span>quality-screened consumer evaluations</span></div><div class="kpi"><b>{h_n}/{l_n}</b><span>hospitality / lifestyle evaluations</span></div><div class="kpi"><b>{m_sq_pv.rsquared:.0%}</b><span>variance in perceived value associated with Service Quality</span></div><div class="kpi"><b>{indirect:.2f}</b><span>estimated indirect effect through Brand Trust</span></div></div>
<p>Consumers who evaluated branded residences more favorably on Service Quality also assigned them greater Perceived Value. Service Quality was strongly associated with Brand Trust. However, after Service Quality was included in the same model, Brand Trust did not provide a statistically distinguishable additional association with Perceived Value (B = {fmt(bt_pv[0])}, p {p_fmt(bt_pv[1])}). The bootstrapped indirect effect was {fmt(indirect)}, 95% CI {ci_fmt(ind_lo,ind_hi)}. Because that interval included zero, the mediation hypothesis was not supported.</p>
<p>The hospitality and lifestyle subsamples were unequal ({h_n} versus {l_n}), which limits the precision of brand-type comparisons. The Service Quality × Brand Type interaction was {"statistically significant" if mod_i[1]<.05 else "not statistically significant"} (B = {fmt(mod_i[0])}, 95% CI {ci_fmt(mod_i[2],mod_i[3])}, p {p_fmt(mod_i[1])}). Accordingly, the available data {"suggest that the Service Quality–Perceived Value relationship differs by brand type" if mod_i[1]<.05 else "do not provide clear evidence that the Service Quality–Perceived Value relationship differs between hospitality and lifestyle brands"}.</p>
<div class="callout"><strong>The practical message:</strong> the brand name may open the door, but consumers’ value judgments are closely tied to whether the residence appears capable of delivering a dependable, responsive, professional, and personalized experience. Trust matters at the bivariate level, but in this sample it overlaps so strongly with Service Quality that its distinct mediating role could not be established.</div>
<p class="note">Hypothesis labels in this report are working formulations derived from the conceptual model supplied with the data. They should be replaced with the proposal’s exact wording before submission as a formal academic manuscript.</p></section>

<section id="purpose"><div class="eyebrow">02 · Study Purpose and Research Model</div><h2>From branded promise to residential value</h2>
<p>The study examined how consumers evaluate branded residences and, specifically, whether perceptions of Service Quality are related to Brand Trust and Perceived Value. Service Quality was represented by five SERVQUAL-informed dimensions: Tangibles, Reliability, Responsiveness, Assurance, and Empathy. Brand Trust captured confidence that the affiliated brand would deliver on its promises and protect residents’ interests over time. Perceived Value combined market, quality, price-premium, prestige, and emotional-benefit judgments.</p>
<p>The working model tested four linked expectations: (H1) Service Quality is positively associated with Perceived Value; (H2) Service Quality is positively associated with Brand Trust; (H3) Brand Trust is positively associated with Perceived Value when Service Quality is controlled; and (H4) Brand Trust statistically mediates the Service Quality–Perceived Value relationship. Brand Type was then tested as a moderator of the Service Quality–Perceived Value association.</p></section>

<section id="data"><div class="eyebrow">03 · Data and Sample</div><h2>Who entered the analysis</h2>
<p>The source was a raw Qualtrics CSV containing consumer responses collected primarily through Prolific. The unit of analysis is one respondent’s evaluation of the single branded-residence category with which that respondent reported the greatest familiarity. Identifiers, contact fields, IP addresses, location coordinates, and free-text email addresses were not used in the statistical analysis and are not reproduced here.</p>
{audit_table}
<p>Six repeated response attempts were identified through duplicated Prolific IDs. For each repeated ID, the consenting record with an eligible brand selection, completed status, and greatest survey progress was retained. The principal analytic sample then required complete focal scales and exact passage of both instructed-response checks. This yielded {n} evaluations. Complete-case analysis was used because retained respondents had no missing values on the focal constructs.</p>
<h3>Sample profile</h3>{sample_table}
<p class="note">One raw familiarity response contained two categories selected together and was retained as recorded in the descriptive profile. Experience with branded residences was a multi-select question; contradictory selections were observed in a small number of raw records, so those combinations are not reduced to a single ordinal “experience level.”</p></section>

<section id="measures"><div class="eyebrow">04 · Measures</div><h2>How the constructs were scored</h2>
<p>All focal items used seven-point agreement scales from 1 (Strongly Disagree) to 7 (Strongly Agree). Each construct originally contained five positively worded items and one negatively worded item. The seven negative items were first reverse-coded using <em>8 − response</em>. Reliability was then compared with and without those items. Because removing the reverse-worded item improved internal consistency across {rev_worse} of the {len(rel_rows)-1} construct scales and the prior study decision was to remove these items, the principal composites use the mean of the five positively worded items. Overall Service Quality is the mean of the five dimension scores, giving equal weight to Tangibles, Reliability, Responsiveness, Assurance, and Empathy.</p>
<p>No respondent was deleted merely to raise reliability, and no positively worded item was removed. The six-item, correctly reverse-coded results remain in the reliability table as a sensitivity comparison.</p></section>

<section id="quality"><div class="eyebrow">05 · Data Quality and Reliability</div><h2>Strong scales, with a wording caveat</h2>
<p>Among the {n} retained cases, there were no missing focal-item responses, no out-of-range item values, and {straightline_n} exact straight-lined response patterns across the 35 positively worded focal items. {low_variance_n} respondent(s) had a within-person standard deviation below .25. The conventional 1.5-IQR lower-duration rule flagged {fast_n} unusually fast retained response(s); duration alone was not used as an exclusion rule.</p>
{rel_table}
<p>The positive-item scales showed high internal consistency. The weaker performance of several correctly reversed items is consistent with a method effect caused by switching item direction, but reliability alone cannot establish why respondents treated those items differently. Their omission is therefore reported transparently and the six-item estimates are preserved for comparison. McDonald’s omega values are one-factor estimates and should be treated as descriptive rather than as a substitute for a confirmatory factor analysis.</p></section>

<section id="descriptive"><div class="eyebrow">06 · Descriptive Findings</div><h2>Consumers evaluated the concept favorably</h2>
{desc_table}
<p>All construct means were above the midpoint of 4.00. The pattern suggests generally favorable expectations of branded residences, especially on the most highly rated SERVQUAL dimensions. At the same time, the compressed upper-end responses create some ceiling tendency, which can reduce the observed variance available to explain relationships. Skewness values and the percentage scoring at or above 6 are shown so that these distributional features remain visible.</p>
<h3>What would influence a purchase</h3>{bm_table}
<p class="note">Influence items used the same seven-point agreement coding. These rankings are descriptive and exploratory; they were not included in the primary hypothesis models.</p>
<h3>How consumers ranked decision factors</h3>{rank_table}
<p class="note">Although the displayed question instructed respondents to rank only five factors, the exported data contain ranks from 1 through 11 for every factor. The report therefore treats Q16 as a complete ordering of all 11 factors; lower means indicate higher priority. This survey-programming discrepancy should be corrected in future waves.</p></section>

<section id="results"><div class="eyebrow">07 · Hypothesis Results</div><h2>Service Quality, trust, and value moved together</h2>
{corr_table}
{hyp_table}
<div class="result"><strong>H1</strong><p>Service Quality was positively associated with Perceived Value (B = {fmt(sq_pv[0])}, 95% CI {ci_fmt(sq_pv[2],sq_pv[3])}, p {p_fmt(sq_pv[1])}). A one-point increase in the Service Quality composite corresponded statistically to a {fmt(sq_pv[0])}-point increase in Perceived Value. The model accounted for {m_sq_pv.rsquared:.1%} of observed variance.</p></div>
<div class="result"><strong>H2</strong><p>Service Quality was positively associated with Brand Trust (B = {fmt(sq_bt[0])}, 95% CI {ci_fmt(sq_bt[2],sq_bt[3])}, p {p_fmt(sq_bt[1])}). Consumers who perceived stronger service performance also expressed greater confidence in the affiliated brand.</p></div>
<div class="result"><strong>H3</strong><p>When both predictors were entered, Brand Trust’s unique coefficient was positive but not statistically distinguishable from zero (B = {fmt(bt_pv[0])}, 95% CI {ci_fmt(bt_pv[2],bt_pv[3])}, p {p_fmt(bt_pv[1])}). The direct Service Quality coefficient was {fmt(direct_r[0])} (95% CI {ci_fmt(direct_r[2],direct_r[3])}, p {p_fmt(direct_r[1])}). Service Quality and Brand Trust correlated at r = {analytic['Service Quality'].corr(analytic['Brand Trust']):.2f}, producing a variance-inflation factor of approximately {1/(1-analytic['Service Quality'].corr(analytic['Brand Trust'])**2):.2f}; this substantial overlap makes their unique coefficients less precise.</p></div>
<div class="result"><strong>H4</strong><p>The estimated indirect effect through Brand Trust was {fmt(indirect)}, with a 5,000-resample percentile bootstrap 95% CI of {ci_fmt(ind_lo,ind_hi)}. Because the interval {"did not include" if ind_lo*ind_hi>0 else "included"} zero, the pattern is consistent with {med_pattern}. This is statistical mediation in cross-sectional data, not evidence that Service Quality temporally causes trust and value.</p></div>
</section>

<section id="groups"><div class="eyebrow">08 · Brand-Type Comparison and Moderation</div><h2>Hospitality versus lifestyle brands</h2>
{group_table}
<p>Welch’s independent-samples tests were used because the hospitality and lifestyle groups were unequal in size and equal variances were not assumed. Hedges’ <em>g</em> expresses the standardized hospitality-minus-lifestyle difference. Group mean differences are descriptive comparisons, not moderation tests.</p>
<h3>Interaction test</h3>{moderation_table}
<p>The interaction model explained {m_mod.rsquared:.1%} of variance in Perceived Value. The interaction coefficient directly tests whether the Service Quality slope differs by brand type. It was {"statistically distinguishable from zero" if mod_i[1]<.05 else "not statistically distinguishable from zero"}; therefore, {"the data support a brand-type difference in the slope" if mod_i[1]<.05 else "a simple group difference should not be described as evidence of moderation"}. The smaller lifestyle group reduces power and widens uncertainty around that comparison.</p></section>

<section id="discussion"><div class="eyebrow">09 · Discussion</div><h2>Implications for branded-residence strategy</h2>
<p>The findings place the residential operating experience at the center of perceived value. Architecture, finishes, and amenities remain visible components of the offer, but the broader Service Quality composite also captures whether a residence appears dependable, responsive, professionally managed, and attentive to individual needs. For developers and brand partners, that suggests the value proposition cannot end with design, a logo, or a list of amenities. Consumers appear to evaluate whether the brand promise can plausibly survive everyday residential operations.</p>
<p>Brand Trust was strongly related to both Service Quality and Perceived Value in the simple correlations, so it remains strategically relevant. Yet the regression and bootstrap results did not isolate the proposed mediating role. In practical terms, respondents may have treated trustworthy brand delivery and strong service capability as closely connected aspects of the same overall evaluation. Sales and marketing teams should still substantiate the brand promise with operational evidence, while future research should refine the measures so that trust and service can be distinguished more clearly.</p>
<p>The absence of clear moderation evidence, if read alongside the unequal group sizes, should be treated cautiously. It does not establish that hospitality and lifestyle brands work identically. It indicates that this sample does not estimate a sufficiently precise difference in the focal slope. A larger, more balanced lifestyle sample would provide a stronger test.</p></section>

<section id="limitations"><div class="eyebrow">10 · Limitations</div><h2>What this study cannot establish</h2>
<ul><li>The cross-sectional design cannot establish temporal order or causality.</li><li>All principal variables were self-reported in one questionnaire, creating potential common-method inflation.</li><li>The Prolific sample is purposive rather than probability-based and should not be generalized to all U.S. luxury consumers.</li><li>Many respondents evaluated expectations or perceptions of a category rather than reporting ownership experience with a specific property.</li><li>The retained lifestyle subsample is smaller than the hospitality subsample, limiting power for group and interaction tests.</li><li>Seven reverse-worded items behaved differently from their positive counterparts. The main analysis omits them transparently, but this measurement decision should be re-examined through cognitive pretesting and CFA in future research.</li><li>The sample is modest for complex latent-variable modeling. CFA and structural equation modeling were intentionally not forced into this report.</li><li>No demographic items such as age, income, gender, education, or geography were present in the supplied focal survey export, limiting assessment of sample composition and omitted-variable explanations.</li></ul></section>

<section id="conclusion"><div class="eyebrow">11 · Conclusion</div><h2>Value begins with credible delivery</h2>
<p>Within this consumer sample, Service Quality, Brand Trust, and Perceived Value were closely related. The clearest distinct predictor of Perceived Value was Service Quality; the proposed indirect role of Brand Trust was not confirmed. The results do not reduce branded residences to service alone, nor do they establish a causal mechanism. They do show that the operating promise deserves the same strategic attention as architecture, amenities, and brand visibility.</p></section>

<section id="practitioner"><div class="eyebrow">12 · One-Page Practitioner Summary</div><h2>What Consumer Evaluations Reveal About Value and Trust in Branded Residences</h2>
<div class="callout"><strong>The central finding:</strong> consumers assigned greater value to branded residences when they also expected stronger service performance. Brand Trust was strongly related to both concepts, but the analysis did not confirm that trust statistically mediated the Service Quality–value relationship.</div>
<p>For the people creating, operating, and selling branded residences, the strongest supported result is straightforward: consumers do not evaluate the residence only through the physical product. They also make a judgment about whether the experience will be delivered consistently after purchase. Reliability, responsiveness, professional competence, and personalized attention become part of the property’s perceived value.</p>
<h3>What developers and brands should do</h3><ul><li><strong>Make the operating promise specific.</strong> Replace broad luxury language with evidence of how services will be delivered, monitored, and maintained.</li><li><strong>Treat trust as an asset that must be operationalized.</strong> Explain the brand’s continuing role, quality-control mechanisms, management responsibilities, and resident-protection standards.</li><li><strong>Connect amenities to lived value.</strong> Show how design, facilities, and branded experiences improve daily residential life rather than presenting them as isolated features.</li><li><strong>Prepare sales teams to discuss execution.</strong> Buyers need credible answers about staffing, response standards, fees, governance, and long-term service consistency.</li><li><strong>Do not overstate brand-type differences.</strong> This sample did not provide a sufficiently clear interaction result to conclude that the Service Quality–value relationship differs between hospitality and lifestyle brands.</li></ul>
<p>The strongest positioning is therefore not simply that a residence carries a recognized name. It is that the name is attached to a credible system for delivering a distinctive residential experience over time.</p></section>

<section id="appendix"><div class="eyebrow">13 · Technical Appendix</div><h2>Audit trail and reproducibility</h2>
<h3>Data-cleaning decision log</h3><ol><li>Read the raw Qualtrics CSV without altering it.</li><li>Removed the first two embedded metadata rows from respondent counts.</li><li>Removed repeated attempts by Prolific ID, retaining the consenting, eligible, most complete record.</li><li>Excluded the nonconsenting record.</li><li>Required selection of hospitality or lifestyle brand type.</li><li>Mapped seven-point agreement text to integers 1–7 and checked range validity.</li><li>Required complete responses across the 42 focal scale items.</li><li>Required exact responses to both instructed-response checks.</li><li>Reverse-coded each negative item as 8 − response for sensitivity analysis.</li><li>Constructed primary scales from the five positively worded items because this was theoretically transparent, consistent with the prior removal decision, and yielded stronger internal consistency.</li><li>Constructed Service Quality as the unweighted mean of its five dimension scores.</li><li>Used complete-case analysis; retained focal composites had no missing data.</li></ol>
<h3>Statistical methods</h3><p>Analyses were performed in Python using pandas, NumPy, SciPy, scikit-learn, and statsmodels. Descriptives include means, standard deviations, medians, ranges, skewness, and upper-end concentration. Reliability includes Cronbach’s alpha and descriptive one-factor omega estimates. Pearson correlations include Fisher-transformed 95% confidence intervals. Regression models use HC3 heteroskedasticity-consistent standard errors. The indirect effect uses 5,000 nonparametric bootstrap resamples with a fixed seed. Brand-type mean comparisons use Welch’s t tests and Hedges’ <em>g</em>. Moderation is tested with a mean-centered Service Quality × Lifestyle interaction.</p>
<h3>Assumption checks</h3><p>All retained composite scores fell within the intended 1–7 range. Composite distributions showed the skewness reported in the descriptive table. HC3 inference and bootstrapping reduce reliance on homoskedastic and normal-error assumptions. Linearity was assessed through the fitted continuous models; no causal or temporal interpretation is made. Unequal group sizes were addressed with Welch tests and explicitly discussed as a power limitation.</p>
<details><summary>Important unresolved documentation issue</summary><p>No separate proposal containing the exact hypothesis wording was supplied. H1–H4 are transparent working statements derived from the supplied conceptual model. Before academic submission, replace them with the proposal’s verbatim hypotheses and confirm whether the proposal specifies a particular path for Brand Type moderation.</p></details>
<details><summary>Reproducible analysis code</summary><pre>{html.escape(source_code)}</pre></details>
</section>
</main><footer>Confidential research report. Respondent identifiers and contact information have been excluded. © 2026 Zeynep A. Talu-Balci.</footer>
</article></body></html>"""

OUT.parent.mkdir(parents=True, exist_ok=True)
OUT.write_text(report, encoding="utf-8")
article_start = report.index('<article class="br-report">')
article_end = report.index('</article>') + len('</article>')
WP_OUT.write_text(css + "\n" + report[article_start:article_end], encoding="utf-8")

summary = {
    "raw_csv_rows": len(raw_export), "actual_response_records": original_records,
    "duplicates_removed": duplicate_rows_removed, "deduplicated_records": len(dedup),
    "consenting": len(consenting), "brand_eligible": len(brand_eligible),
    "complete_scales": len(complete_scale), "analytic_n": n,
    "hospitality_n": h_n, "lifestyle_n": l_n,
    "sq_to_pv": {"B": sq_pv[0], "p": sq_pv[1], "CI": [sq_pv[2],sq_pv[3]], "R2": m_sq_pv.rsquared},
    "sq_to_bt": {"B": sq_bt[0], "p": sq_bt[1], "CI": [sq_bt[2],sq_bt[3]]},
    "bt_to_pv_control_sq": {"B": bt_pv[0], "p": bt_pv[1], "CI": [bt_pv[2],bt_pv[3]]},
    "indirect": {"estimate": indirect, "CI": [ind_lo,ind_hi]},
    "moderation": {"B": mod_i[0], "p": mod_i[1], "CI": [mod_i[2],mod_i[3]]},
}
print(json.dumps(summary, indent=2))