makeAugmentedSample: Create randomized residuals and observations for data sets...

Description Usage Arguments Details Value Examples

View source: R/makeRandomResiduals.R


This function is used to add two columns to the Sample data frame: rResid and rObserved. rResid is the randomized residual value computed in log concentration units, and rObserved is the randomized 'observed' value of concentration in concentration units. Both of these are computed for all censored samples ("less than values"). They are created for purposes of plotting and are not used in any computations in EGRET.





named list with at least the Sample dataframe


The WRTDS model must be estimated before this function can be run. The random value that is generated lies between the reporting limit and zero and is distributed as a truncated log-normal distribution, with parameters derived from the fitted WRTDS model. These random values are never used in any computations in EGRET but are used for purposes of plotting the data set or residuals. When plotted in other functions they are shown as open circles.


eList named list with modified Sample data frame.


choptankAugmented <- makeAugmentedSample(Choptank_eList)

EGRET documentation built on Jan. 25, 2022, 5:08 p.m.