Take a matrix of tree calibrations, a matrix of tree predictions, a matrix of assembly motifs, and return statistics of each observed assembly motif.
compute_motif_stats(tCal, tPrd, mMotifs)a numeric matrix. This matrix is the matrix of performances predicted by the valid tree model.
a numeric matrix. This matrix is the matrix of performances predicted by cross-validation.
a numeric matrix. This matrix is the matrix of assembly motifs.
Returns the statistics for each assembly motif.
The different assembly motifs have different length: the motif set can be treated as a list. Each assembly motif is separately analysed.
uTab: the assemblages that belong to the assembly motif,
uMean: the arithmetic mean of motif performances,
uSd: the standard deviation of motif performances,
uRmse: the Root Mean Square Error of motif performances,
uR2: the Coefficient of determination of motif performances,
uSlope:
the slope of linear regression with motif performances.