Compensation application and tolerance toward wild boars

Statistical consulting artifact for Mengxi Kou · Fresh R-first analysis release · 17 September 2026

A browsable record of the complete path from the cleaned workbook through EDA, measurement, structural models, robustness checks, visualisations, reports, and presentation.

Executive result

625matched respondents
277 / 348applicants / non-applicants
−0.142PLS direct path (95% bootstrap CI −0.194 to −0.083)
0proposed indirect intervals excluding zero

Application is negatively associated with several management-related tolerance dimensions. The four questions do not form one interchangeable scale; the safety item behaves differently. The defensible conclusion is a qualified association, not proof that compensation causes lower tolerance.

Guardrail: CE0 records application, not verified payment. County and survey period are confounded. Mediation, moderation, and AIPW-style results depend on assumptions that this cross-sectional design cannot establish.

Full HTML report

1. Data foundation and EDA

The authoritative workbook has a 625-row Input Data sheet and a 626-row Raw data sheet containing a header/response layer. All IDs match one-to-one. The duplicate Python workbook is byte-identical. The retained data contain 160 Baoxing and 465 Qingchuan respondents; reasons for excluding 49 initial interviews are not available.

Preparation choices

metricvalue
respondents625
applicants277
counties2
townships25
villages178
inside_park105
missing_village1
invalid_minimum_ratio9
invalid_desired_ratio4
damage_exceeds_area7
prevention_nonusers83
alpha_four0.337777445913655
alpha_three0.501882397127206
Application proportions differ strongly between the two counties.
The four tolerance questions measure distinct substantive dimensions.
Observed applicant/non-applicant differences motivate explicit adjustment and sensitivity checks.

Complete EDA tables cover distributions, missingness, category frequencies, correlations, county/application/park profiles, crop portfolios, raw question families, and descriptive words.

2. Measurement: EFA, CFA, and PCA

The measurement programme tests whether the proposed constructs are meaningful before using them in structural paths. EFA uses development-partition polychoric correlations, minimum-residual extraction, parallel analysis, and oblimin rotation. CFA uses ordinal WLSMV for theory models evaluated on a village-disjoint validation partition and the full sample.

Parallel analysis for the eight core attitude/cost items.
factorsRMSRTLIRMSEAadmissibledevelopment_ncomplete_nparallel_suggested
10.04482039529570470.8101226749622050.0847999943600945TRUE3162384
20.02900085783824690.9302271289961060.0512132980514669FALSE3162384
30.01943004195156261.004459251872110TRUE3162384
partitionmodelnconvergedadmissiblechisq.scaleddf.scaledcfi.scaledtli.scaledrmsea.scaledsrmr
validationtwo_factor_four309TRUETRUE45.0225714351190.9115560063840020.8696614830922130.06668420009179920.0642721291739103
validationtwo_factor_three309TRUETRUE22.2968615840679130.9670088619304250.9467066231183790.04818603015931560.0507995776059653
validationone_factor309TRUETRUE45.3634400154017200.9137962236977010.8793147131767820.06416729354540240.0656526074609448
fulltwo_factor_four625TRUETRUE62.7306928452069190.9318158829208520.8995181432517820.06073290902493320.053868972294894
fulltwo_factor_three625TRUETRUE40.6685490982776130.957067342404840.9306472454232040.05840220198360020.0483118564378772
fullone_factor625TRUETRUE62.802223102653200.9332635363997220.906568950959610.05856334444610020.0542682018826479
comparisonhtmt
Tolerance4 vs IC reflective hypothesis1.07389356252364
Tolerance3 vs IC reflective hypothesis0.92695663491981
Institutions vs IC (NOT applicable to formative blocks)

Parallel analysis suggests four factors among eight items, but the item pool cannot support a defensible four-factor CFA with three indicators per factor. The two-factor EFA has an ultra-Heywood warning. CFA shows overlap between tolerance and the proposed cost factor, while formative institutional behaviors should not be forced through reflective HTMT thresholds. The historical HTMT 1.112 is therefore a warning to inspect indicator meaning, not a reason to merge constructs automatically.

componentvariancecumulative
10.2533991715466650.253399171546665
20.1487511733426110.402150344889275
30.1262486510922080.528398995981483
40.1239971554042750.652396151385758
50.1051996943690490.757595845754807
60.1031568777510950.860752723505902
70.07890168262943640.939654406135338
80.06034559386466171
PCA variance profile: descriptive variance reduction, not latent validation.

3. Statistical analysis choices and outputs

Ordinal and score models

Each tolerance item is analyzed separately with cumulative-logit models. Adjustment families proceed from unadjusted to background, resources, and explanatory contemporaneous variables. Township-clustered uncertainty is primary; village clustering is sensitivity. Holm correction is applied within adjustment families.

outcomeadjustmentnestimatelowhighp_holm
tol1unadjusted624-0.98217234603998-1.40940089840024-0.5549437936797190.000317850535333678
tol1background624-0.633898557977934-1.00888431070471-0.2589128052511550.00757381033244225
tol1resources624-0.667679961053495-1.05206850873873-0.2832914133682610.00596930136062374
tol1explanatory622-0.468636515166197-0.899068275484797-0.03820475484759690.082621276858077
tol2unadjusted625-0.634709401776367-1.03898457944658-0.2304342241061530.0104491365099402
tol2background625-0.48444431506672-0.909138232593615-0.05975039753982490.0812399148746044
tol2resources625-0.560545523179427-0.968661646093486-0.1524294002653670.0274727650914517
tol2explanatory623-0.517287350590499-0.972274972382959-0.06229972879803920.082621276858077
tol3unadjusted6250.3957352006448840.1142109138912710.6772594873984960.0156761990919237
tol3background6250.0660896047478136-0.2586784894554420.3908576989510690.678222555065737
tol3resources6250.100021580166425-0.2384412160893130.4384843764221630.547648377855641
tol3explanatory6230.225138093238928-0.1475031427736890.5977793292515450.224450982943583
tol4unadjusted625-0.00193676683875867-0.366970819795840.3630972861183220.991353492265559
tol4background625-0.304378175612071-0.6172051619695420.008448810745400830.112017711923748
tol4resources625-0.362802702829127-0.644313032430077-0.08129237322817670.0274727650914517
tol4explanatory623-0.407464138254615-0.720741196757274-0.09418707975195580.0518450000054982
Item-level application associations with township-clustered intervals.
outcomeadjustmentestimatelowhighp
tolerance3unadjusted-0.248017678813548-0.40595401016176-0.09008134746533540.00347656546377917
tolerance3unadjusted-0.248017678813548-0.390904384615027-0.1051309730120680.000762925483329929
tolerance3background-0.284439618325466-0.452170388154703-0.1167088484962290.00184245062981851
tolerance3background-0.284439618325466-0.440087923450538-0.1287913132003940.000403646091196077
tolerance3resources-0.325253448668089-0.482622549417448-0.1678843479187310.000268722735659171
tolerance3resources-0.325253448668089-0.484083918675344-0.1664229786608347.91760109763636e-05
tolerance3explanatory-0.251936269529421-0.376990216544225-0.1268823225146170.000353224913665285
tolerance3explanatory-0.251936269529421-0.399037021097494-0.1048355179613480.000892088873753424
tolerance4unadjusted-0.113091241819314-0.2852747359186980.05909225228006940.187852536044303
tolerance4unadjusted-0.113091241819314-0.2666581054642180.04047562182558940.147907523410449
tolerance4background-0.232168998595313-0.403579736833116-0.06075826035751050.0100342161042492
tolerance4background-0.232168998595313-0.383855436141618-0.08048256104900760.00289683761136176
tolerance4resources-0.263714545764518-0.434098645940767-0.09333044558826940.00389281466208053
tolerance4resources-0.263714545764518-0.42360258080849-0.1038265107205460.00135878564166448
tolerance4explanatory-0.16880904161493-0.320622619241006-0.01699546398885330.0307817971283124
tolerance4explanatory-0.16880904161493-0.325598399131771-0.01201968409808830.0349958028145067

Bayesian complement

Four cumulative-logit township-random-intercept models use weakly informative priors and posterior predictive checks. All four passed the prespecified convergence checks.

outcomemax_rhatmin_bulk_essmin_tail_essdivergencesdiagnostics_pass
tol11.005233027069881249.544060587322062.815471040180TRUE
tol21.00288549045753849.7176564184491655.986007233330TRUE
tol31.00407938614313932.7222212304651765.343000470170TRUE
tol41.00356202703873785.6077788476831023.325124245680TRUE
outcomenmedianlowhighprob_positivediagnostics_pass
tol1624-0.625915417760975-0.978190948484404-0.2547836574699260.00025TRUE
tol2624-0.462066102778309-0.818216317961119-0.1068942823650020.005TRUE
tol36240.144156506481865-0.1772409210332810.4741695501334450.808TRUE
tol4624-0.283547740961159-0.5900458814424860.0365128274661220.044TRUE

PLS-SEM and mechanisms

PLS-SEM compares baseline, mediation, extended, four-item, and IC1-only specifications. Formative blocks are evaluated with weights/VIF; reflective blocks with loadings and reliability; structural output includes R², f², SRMR, direct paths, indirect products, and the application-by-cost interaction.

modelnadmissibleR2_TolSRMR
baseline622TRUE0.2115815718462770.0749295044818594
mediation622TRUE0.2134781508294920.090961267542986
extended622TRUE0.2335225274960350.0743030966311556
four_items622TRUE0.2176598413764050.0908943056088911
ic1_only622TRUE0.187485207900460.0923308575942925
parameterestimatelowhighp_centeredsuccessful
direct-0.142375714280746-0.1941453581561-0.09336532643906710.0004997501249375312000
indirect_IC-0.0248147144260674-0.06516272176016140.01941510184232920.2458770614692652000
indirect_PS0.0242449449234779-0.002039389826947370.04934012395125320.06596701649175412000
total-0.142945483783336-0.189623792165052-0.08282093881812340.0004997501249375312000
IC_to_Tol-0.364901886647823-0.43903521084551-0.2592634664856770.0004997501249375312000
PS_to_Tol0.0716627767800155-0.005775285758412890.1494700725932150.07296351824087962000
IB_to_Tol0.185807603456150.1108289217761670.2623163629334960.0004997501249375312000
TC_to_Tol0.0595725862437899-0.06327232261705430.09646327631310530.2183908045977012000
interaction0.100452061648737-0.06953683359172920.2650860340976340.2473763118440782000
interaction_f20.002856038439203357.07747944036374e-060.02038777153646270.315842078960522000
direct-0.142375714280746-0.193473253236042-0.09238789251420322e-044999
indirect_IC-0.0248147144260674-0.06529863997007150.01952895355360930.24844999
indirect_PS0.0242449449234779-0.00207932091988230.04897737351236480.06244999
total-0.142945483783336-0.194038160095021-0.08336814323221532e-044999
IC_to_Tol-0.364901886647823-0.439675122373746-0.2603461943290452e-044999
PS_to_Tol0.0716627767800155-0.005810661755875030.148324067809520.074999
IB_to_Tol0.185807603456150.1133706419248130.2616066486048192e-044999
TC_to_Tol0.0595725862437899-0.06880162577846550.09725088704935670.22344999
interaction0.100452061648737-0.07358878692278920.263686922169810.25364999
interaction_f20.002856038439203357.97181290944361e-060.02005828718746110.3194999
Measurement-and-structural PLS bootstrap intervals.

4. Secondary analysis, prediction, and stress tests

The secondary programme uses applicant experience, agricultural dependence, prevention adoption/effectiveness, insurance preferences, reporting contacts, information channels, crop-specific damage, seasonality, and original descriptive words. Missingness and structural skips are retained explicitly.

analysisnestimatelowhighp_BH_exploratory
application_selection6250.0867660870714014-0.03105935621636010.2045915303591630.300933327588465
applicant_timeliness2750.0129957361038684-0.09738261910541060.1233740913131470.860700071858826
applicant_satisfaction276-0.0182786380766397-0.1025119026460620.06595462649278270.746035119971714
applicant_both_experiences274-0.0433736433052398-0.1776631863114150.09091589970093520.746035119971714
livelihood_dependence6240.2503756486931210.1030199396311880.3977313577550530.030796149915641
damage_burden624-0.170855179616903-0.3493452576476640.007634898413858140.169447715037264
income_loss_burden605-0.00401220019234847-0.02151765031009410.01349324992539720.746035119971714
prevention_adoption6251.134143407240720.3579625012020771.910324313279360.0353476094539341
prevention_effectiveness_users5410.1317477731725860.04104414703487450.2224513993102970.0353476094539341
insurance_positive_wtp6250.5237850545926120.06684685926413710.9807232499210880.0897862861063989
insurance_positive_amount4920.0815702510797327-0.1350650513992640.2982055535587290.746035119971714
minimum_ratio_validated6160.00027927104636343-0.03213418587339010.03269272796611690.98595950125688
minimum_ratio_retain_flagged625-0.10657085697524-0.2461959995347180.0330542855842380.300933327588465
desired_ratio_validated6210.0125684224050953-0.03885990688546420.06399675169565470.746035119971714
desired_ratio_retain_flagged6250.0151700472510932-0.04030067969857060.07064077420075690.746035119971714
reporting_contacts6220.1304833634603260.02493067429510920.2360360526255420.074468925324147
information_channels622-0.0467977790408624-0.1375052450355990.0439096869538740.562057211090065
methodraw_questionusersnonusersmean_effectiveness_usersrecorded_cost_nmedian_recorded_cost
A现有针对野猪的事前预防策略的实施效果如何?成本如何(元/年)? - 设置障碍物(电围栏)2483772.1532258064516155500
B现有针对野猪的事前预防策略的实施效果如何?成本如何(元/年)? - 利用干扰技术,如:爆闪灯、音响等3912342.02557544757033115200
C现有针对野猪的事前预防策略的实施效果如何?成本如何(元/年)? - 人工看守3392862.9085545722713930
D现有针对野猪的事前预防策略的实施效果如何?成本如何(元/年)? - 改变作物结构(换种/弃种)565692.892857142857140
E现有针对野猪的事前预防策略的实施效果如何?成本如何(元/年)? - 生物防治,如:豢养犬只等1474782.34013605442177140
F现有针对野猪的事前预防策略的实施效果如何?成本如何(元/年)? - 异地安置或狩猎106151.10
G现有针对野猪的事前预防策略的实施效果如何?成本如何(元/年)? - 移民搬迁66191.333333333333330

Prediction and adjustment

Nested township-grouped cross-validation compares a mean benchmark, elastic net, GAM, random forest, and boosting. Fold-local preprocessing avoids leakage. Repeated township cross-fitting estimates an AIPW-style adjusted contrast; overlap and effective sample size are reported.

methodnRMSEMAER2
boosting6240.5375133802617970.4086747617160330.191919870353864
elastic_net6240.5367716938629260.4138834511220340.194148386194006
GAM6240.5406445241303360.4177095624562570.182477929779763
mean6240.5983367871882710.45228239512654-0.00130706142684667
random_forest6240.5380246869098940.4064211404914530.190381775587424
Out-of-fold predictive performance for the raw three-item score.
repetitionestimate_rawselowhighmin_propensitymax_propensityclippedeffective_sample_sizeestimand
1-0.1982683468548290.049199118500615-0.299810336761615-0.09672635694804290.1223751588679440.8714747124220810547.406612935433Cross-fitted adjusted contrast; causal interpretation requires unverified assumptions
2-0.1985591276767870.0473236988229838-0.296230441608462-0.1008878137451130.1065280587308150.8798256965256970532.453988269421Cross-fitted adjusted contrast; causal interpretation requires unverified assumptions
3-0.1931069918494180.0509899753453468-0.298345128622128-0.08786885507670850.1241606073248140.8677767793025680536.464047230177Cross-fitted adjusted contrast; causal interpretation requires unverified assumptions
4-0.1948330537690350.0496987063885076-0.297406142399049-0.09225996513902050.1023153452002880.8878085110541630538.326722795135Cross-fitted adjusted contrast; causal interpretation requires unverified assumptions
5-0.2163446859944150.0510413444626457-0.32168884341443-0.11100052857440.08912202766498990.8676947395599570535.990333158659Cross-fitted adjusted contrast; causal interpretation requires unverified assumptions
Out-of-fold application propensity overlap.

5. Specification curve and p-hacking safeguards

The specification curve varies prespecified outcomes, measurement summaries, adjustment families, economic transformations, anomaly handling, missingness sensitivity, and clustering. Exact duplicate inputs are deduplicated. Leave-one-township-out and county checks show influence and transport sensitivity.

Reasonable analytical choices shown separately by outcome; this is not proof that p-hacking is absent.
outcomeadjustmentspecificationsminmedianmaxnegative_fraction
tol1background6-0.293353291610317-0.285929664813424-0.2845377797536041
tol2background6-0.258296459555991-0.255211460041032-0.251928422515551
tol3background60.03576460532322320.03917881868583320.04946981126833260
tol4background6-0.149358486208858-0.140154015846863-0.1387361406727541
tolerance3background6-0.296172395307589-0.285041711486886-0.2844396183254661
tolerance4background6-0.235282697396808-0.232168998595313-0.2318179057556281
tol1conflict12-0.251214974130296-0.239457322548729-0.2301692086693131
tol2conflict12-0.256166869922759-0.244815052907951-0.2317377319905461
tol3conflict120.07695588509625270.08830635913748020.0971969494807810
tol4conflict12-0.153497097423365-0.143516268186744-0.1338430335308831
tolerance3conflict12-0.278740605421622-0.266626906747134-0.2528999106246991
tolerance4conflict12-0.197130594706364-0.189265905326293-0.1843625595553951
tol1explanatory24-0.17811902366503-0.170880312096222-0.1624742244006821
tol2explanatory24-0.230715030350684-0.224618965732867-0.2144185322238391
tol3explanatory240.08961139021621130.1079951832712990.1220961320674280
tol4explanatory24-0.190631774771841-0.182262976195127-0.1776326469117651
tolerance3explanatory24-0.260309485592029-0.254043650490881-0.2505990472996951
tolerance4explanatory24-0.177021511329323-0.17095115864786-0.1659886985620061
tol1none6-0.425622453614695-0.424069982177935-0.4196429999332481
tol2none6-0.318060468887704-0.308392062395252-0.3049108622544151
tol3none60.209453089780770.2153336753345510.2264496315203170
tol4none60.02376702043093080.02747631410972680.03187403819165940
tolerance3none6-0.259684722077729-0.254538607239035-0.2480176788135481
tolerance4none6-0.126699188242459-0.11338349651607-0.1130912418193141

Showing 24 rows; full CSV.

termestimateselowhighpnclusterscounty
application-0.3810748029688160.145830840408551-0.7859661260080190.02381652007038710.05922498961044911605Baoxing
application-0.3024621056173670.0914510015567174-0.493871251675309-0.1110529595594260.0037033612083945446420Qingchuan

A dated decision register, complete result tables, explicit failures, multiplicity handling, and transparent outcome definitions make selective reporting auditable. Nonsignificant MGA differences are reported as no strong evidence of difference, not equivalence.

6. Reproduction

Rscript run_project.R --restore
Rscript run_project.R
Rscript run_project.R --render
Rscript run_project.R --verify

The generated manifest records source hashes, data hash, seed, session information, and slide counts. Validation passed for coding audit, respondent/application counts, bootstrap success, Bayesian diagnostics, and prediction outputs.

Data hash: 9fca74ec64e7cf5858b3c63b39ace1f9b891b7572114e531be9c7dcb30a92634. The source audit reports 625 input rows, 319 disagreements between CE0 and the obsolete sightings proxy, and 13 unresolved percentage anomalies.

All machine-readable outputs are under tables; model objects and logs are under models/logs. The complete narrative report contains the explicit answers to every Exploratory Contribution question.

7. Limitations and next clarification

This is a cross-sectional, nonrandom application comparison from two county-period combinations. Unknown sampling/exclusion mechanisms, incomplete payment timing, unresolved percentage and area-unit meanings, weak/overlapping reflective measurement, structural missingness, and potential unmeasured confounding limit causal claims. The most useful next step is to resolve these fieldwork questions with Mengxi and amend affected analyses transparently.