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

View source: R/makeRandomResiduals.R

makeAugmentedSampleR Documentation

Create randomized residuals and observations for data sets that have some censored data

Description

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.

Usage

makeAugmentedSample(eList)

Arguments

eList

named list with at least the Sample dataframe

Details

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.

Value

eList named list with modified Sample data frame.

Examples

choptankAugmented <- makeAugmentedSample(Choptank_eList)

EGRET documentation built on April 18, 2023, 5:09 p.m.