Dear Family,
We recently conducted an experiment to promote environmentally sustainable input bundles (certified seeds, inoculants, Yara legume fertilizer/TSP, organic farming aid (OFA), and biochar) aimed at increasing soybean and groundnut yields. The study used 97 demonstration farms (51 groundnut and 46 soybean), each serving as a platform to promote adoption among farmers.
Each demonstration farm had six treatment plots. For both groundnut and soybean, the treatments were:
(1) Certified seed only (control),
(2) Certified seed + inoculant,
(3) Certified seed + inoculant + OFA,
(4) Certified seed + TSP/Yara legume fertilizer,
(5) Certified seed + inoculant + biochar, and
(6) Certified seed + OFA.
For every plot, we collected fresh and dry weight yield data, resulting in 582 observations across the 97 demo farms (six treatments per farm).
The main objective of the analysis is to identify which input bundle produces the highest yield for soybeans and groundnuts. Given that each demonstration farm contributes multiple observations, the data are clustered at the farm level and observations are not independent.
To account for this structure, I estimated a mixed-effects model as follows:
mixed DriedYield i.trt|| FarmerID: if Crop=="Goundnut demo farms"
testparm i.trt
margins trt
mixed DriedYield i.trt|| FarmerID: if Crop=="soybean demo farms" testparm i.trt margins trt While this approach accounts for clustering by demo farm, I would appreciate your guidance on whether this is the most appropriate model specification, including the correct treatment of fixed and random effects, and the best way to compare treatment effects to identify the most effective input bundle.
I am happy to share a sample dataset or the do-file if helpful.
I need your help.
Thank you very much for your support.
Kind regards,
We recently conducted an experiment to promote environmentally sustainable input bundles (certified seeds, inoculants, Yara legume fertilizer/TSP, organic farming aid (OFA), and biochar) aimed at increasing soybean and groundnut yields. The study used 97 demonstration farms (51 groundnut and 46 soybean), each serving as a platform to promote adoption among farmers.
Each demonstration farm had six treatment plots. For both groundnut and soybean, the treatments were:
(1) Certified seed only (control),
(2) Certified seed + inoculant,
(3) Certified seed + inoculant + OFA,
(4) Certified seed + TSP/Yara legume fertilizer,
(5) Certified seed + inoculant + biochar, and
(6) Certified seed + OFA.
For every plot, we collected fresh and dry weight yield data, resulting in 582 observations across the 97 demo farms (six treatments per farm).
The main objective of the analysis is to identify which input bundle produces the highest yield for soybeans and groundnuts. Given that each demonstration farm contributes multiple observations, the data are clustered at the farm level and observations are not independent.
To account for this structure, I estimated a mixed-effects model as follows:
mixed DriedYield i.trt|| FarmerID: if Crop=="Goundnut demo farms"
testparm i.trt
margins trt
mixed DriedYield i.trt|| FarmerID: if Crop=="soybean demo farms" testparm i.trt margins trt While this approach accounts for clustering by demo farm, I would appreciate your guidance on whether this is the most appropriate model specification, including the correct treatment of fixed and random effects, and the best way to compare treatment effects to identify the most effective input bundle.
I am happy to share a sample dataset or the do-file if helpful.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input long FarmerID str19 Crop byte(plotlayout_index trt) double(FreshYield DriedYield) 1 "soybean demo farms" 1 1 5.7 14.6 1 "soybean demo farms" 2 2 4.8 6.8 1 "soybean demo farms" 3 3 6.8 14.6 1 "soybean demo farms" 4 4 4.7 5.7 1 "soybean demo farms" 5 5 6 14.6 1 "soybean demo farms" 6 6 12.9 7.8 2 "soybean demo farms" 1 1 11.5 13.25 2 "soybean demo farms" 2 2 12.65 19.9 2 "soybean demo farms" 3 3 12.55 10.55 2 "soybean demo farms" 4 4 14.25 10.65 2 "soybean demo farms" 5 5 21.1 16.35 2 "soybean demo farms" 6 6 17.53 9.5 3 "soybean demo farms" 1 1 16.8 14.45 3 "soybean demo farms" 2 2 11.2 11.2 3 "soybean demo farms" 3 3 10.6 16.8 3 "soybean demo farms" 4 4 20.75 20.75 3 "soybean demo farms" 5 5 14.45 10.6 3 "soybean demo farms" 6 6 15.71 15.71 4 "soybean demo farms" 1 1 11.3 8.47 4 "soybean demo farms" 2 2 7.18 8.11 4 "soybean demo farms" 3 3 10.12 6.01 4 "soybean demo farms" 4 4 8.08 10.53 4 "soybean demo farms" 5 5 12.62 6.46 4 "soybean demo farms" 6 6 10.76 9.14 5 "soybean demo farms" 1 1 13.52 12.47 5 "soybean demo farms" 2 2 10.12 12.29 5 "soybean demo farms" 3 3 8.22 8.22 5 "soybean demo farms" 4 4 14.7 7.53 5 "soybean demo farms" 5 5 9.86 8 5 "soybean demo farms" 6 6 13.38 11.26 6 "Goundnut demo farms" 1 1 12 6.4 6 "Goundnut demo farms" 2 2 11 5.4 6 "Goundnut demo farms" 3 3 14 5.4 6 "Goundnut demo farms" 4 4 15 5.3 6 "Goundnut demo farms" 5 5 14.8 5 6 "Goundnut demo farms" 6 6 20 5.3 7 "Goundnut demo farms" 1 1 12 9.73 7 "Goundnut demo farms" 2 2 14 13.11 7 "Goundnut demo farms" 3 3 16 15.5 7 "Goundnut demo farms" 4 4 10 14.87 7 "Goundnut demo farms" 5 5 18 17.39 7 "Goundnut demo farms" 6 6 15 13.64 8 "Goundnut demo farms" 1 1 10 13.5 8 "Goundnut demo farms" 2 2 14 13.3 8 "Goundnut demo farms" 3 3 18 8.7 8 "Goundnut demo farms" 4 4 17 8.2 8 "Goundnut demo farms" 5 5 14 9.6 8 "Goundnut demo farms" 6 6 14 6.4 9 "Goundnut demo farms" 1 1 14 9 9 "Goundnut demo farms" 2 2 13.2 7 9 "Goundnut demo farms" 3 3 13 7.5 9 "Goundnut demo farms" 4 4 18 6 9 "Goundnut demo farms" 5 5 15.9 7.5 9 "Goundnut demo farms" 6 6 18.1 8 10 "Goundnut demo farms" 1 1 14 10 10 "Goundnut demo farms" 2 2 12 10 10 "Goundnut demo farms" 3 3 15 8.5 10 "Goundnut demo farms" 4 4 13 8.4 10 "Goundnut demo farms" 5 5 10 12.5 10 "Goundnut demo farms" 6 6 12 9.4 end label values trt Demo_type label def Demo_type 1 "Plot 1 (Certified seed only (control)", modify label def Demo_type 2 "Plot 2 (Certified seed + inoculant )", modify label def Demo_type 3 "Plot 3 (Certified Seed + inoculant + OFA)", modify label def Demo_type 4 "Plot4 (Certified Seed + TSP/Yara legume fertilizer)", modify label def Demo_type 5 "Plot5 (Certified seed + inoculant + Biochar)", modify label def Demo_type 6 "Plot6 (Certified seed + OFA )", modify
Thank you very much for your support.
Kind regards,

Comment