DeriveOutcomes.Rd
This function identifies exactly co-located ERA outcomes (same experiment, treatment, location and time) to generate additional outcomes and appends them to the supplied Data. Note infinite MeanC or MeanT values are removed.
DeriveOutcomes(Data, RmPartial = T, DoWUE = T)
An ERA data.table (e.g. ERAg::ERA.Compiled
).
Logical T/F
. If T
partial economic outcomes are excluded from the process.
Logical T/F
. If T
water use efficiency outcome is derived from yield and TSP (total seasonal precipitation) data
DeriveOutcomes returns the input data.table
with additional rows appended for derived outcomes.
The function currently generates additional outcomes for:
Net Returns (NR) = gross returns (GR) - total costs (TC)
Gross Margin (GM) = gross returns (GR) - variable costs (VC)
Benefit Cost Ratio (GRTC) = gross returns (GR)/total costs (TC)
Benefit Cost Ratio (GRVC) = gross returns (GR)/variable costs (VC)
Water Use Efficiency (WUE) = yield/total seasonal precipitation
Nitrogen Total Factor Productivity (NTFP) = (yield.exp - yield.cont)/N added
Derived net returns are appended to Data
before benefit cost ratio outcomes are derived.
Note that many of the outcomes derived from the data can be negative therefore be careful not to exclude these outcomes when applying the ERAg::PrepareERA
function (the Perc.Neg
parameter could be adjusted to retain negative outcomes).