getResiduals: getResiduals

View source: R/utilities-goodness-of-fit.R

getResidualsR Documentation

getResiduals

Description

This function may be reshape to be more generic later on Currently, the input variable data is a data.frame with "Time", "Concentration" and "Legend" The function get the simulated data with the time the closest to the observed data times

Usage

getResiduals(
  observedData,
  simulatedData,
  residualScale = ResidualScales$Logarithmic
)

Arguments

observedData

data.frame of time profile observed data

simulatedData

data.frame of time profile simulated data

residualScale

Scale for calculation of residuals as included in enum 'ResidualScales'

Value

residualsData data.frame with Time, Observed, Simulated, Residuals


Open-Systems-Pharmacology/OSPSuite.ReportingEngine documentation built on March 30, 2024, 4:17 p.m.