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)

Arguments

Data

An ERA data.table (e.g. ERAg::ERA.Compiled).

RmPartial

Logical T/F. If T partial economic outcomes are excluded from the process.

DoWUE

Logical T/F. If T water use efficiency outcome is derived from yield and TSP (total seasonal precipitation) data

Value

DeriveOutcomes returns the input data.table with additional rows appended for derived outcomes.

Details

The function currently generates additional outcomes for:

  1. Net Returns (NR) = gross returns (GR) - total costs (TC)

  2. Gross Margin (GM) = gross returns (GR) - variable costs (VC)

  3. Benefit Cost Ratio (GRTC) = gross returns (GR)/total costs (TC)

  4. Benefit Cost Ratio (GRVC) = gross returns (GR)/variable costs (VC)

  5. Water Use Efficiency (WUE) = yield/total seasonal precipitation

  6. 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).