View source: R/QualityControl.R
QualityControl | R Documentation |
This function calculates the root-mean-square deviation (RMSD), the Nash Sutchiffe Coefficient, the residual sum of squares (RSS) and the mean absolute percentage error (MAPE) for the matrices introduces. This function also calculates the mean of the RMSD, the mean of the Nash Sutchiffe Coefficient and the mean of the RSS.
QualityControl(matrixData, matrixExpected, names.especie)
matrixData |
Matrix that contains at row i the bacterial taxa of bacteria i at the time points that we want take into account to calculate the quality control values. |
matrixExpected |
Matrix that contains at row i the expected value of the bacterial taxa i at the time points that we want take into account to calculate the quality control values. The bacteria must be placed in the same order than in |
names.especie |
Vector with the names of the bacteria in the same order that are placed in the |
Returns a data.frame.
names.especie=c("Bact1", "Bact2", "Bact3")
matrixExpected=matrix(c(1:9),3,3)
matrixData=matrixExpected+0.1
QualityControl(matrixData, matrixExpected,names.especie)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.