percent_rmse: Calculate RMSE and percent RMSE with PLSR model results

View source: R/utils.R

percent_rmseR Documentation

Calculate RMSE and percent RMSE with PLSR model results

Description

Calculate RMSE and percent RMSE with PLSR model results

Usage

percent_rmse(
  plsr_dataset = NULL,
  inVar = NULL,
  residuals = NULL,
  range = "full"
)

Arguments

plsr_dataset

input plsr dataset

inVar

the trait variable used in the calculation of RMSE

residuals

predicted minus observed residual vector from either a cross-validation CV or independent validation

range

calculate over the full data range or the 95% of data range. options full or 95perc

Value

output a list containing the rmse and perc_rmse. output <- list(rmse = rmse, perc_rmse = perc_rmse)

Author(s)

Shawn P. Serbin


TESTgroup-BNL/PLSR_for_plant_trait_prediction documentation built on Feb. 15, 2025, 2:08 p.m.