import json,math
from pathlib import Path
rows=[]
for name,a,sa,na,b,sb,nb in [('Study1 detailed minus minimal',4.74,1.89,162,4.37,1.78,164),('Study2 detailed minus no disclosure',4.44,1.79,90,4.33,1.80,90)]:
 d=a-b;se=math.sqrt(sa*sa/na+sb*sb/nb);rows.append(dict(comparison=name,difference=d,standard_error=se,approximate_95_normal_interval=[d-1.96*se,d+1.96*se]))
Path(__file__).with_name('results.json').write_text(json.dumps({'source':'Le et al.2026 sections5.1 and7.1','method':'Independent-group normal intervals from rounded published summary statistics; not reanalysis of raw data','results':rows},indent=2))
