Censored_data: Censored Data

View source: R/Censored_Data.R

Censored_dataR Documentation

Censored Data

Description

This function deals with censored data as described in the white paper "Use of Censored Data" from 5/11/2018 When the QL > criteria value, 1/2 the value of the criteria is substituted for any sample reported as censored When the QL < Criteria value, 1/2 the QL value will be substituted Samples greater than the Max QL, use QL value Input is a dataframe Adds a column named Result_cen for the value to use Column names should be strings.

Usage

Censored_data(df, results = "Result_Numeric",
  results_qualifier = "Result_Operator", criteria = "criteria")

Arguments

df

dataframe to modify.

results

name of column in dataframe with the result to be compared against. Defaults to 'Result_Numeric'.

results_qualifier

name of column in dataframe for the qualifier. Defaults to 'Result_Operator'.

criteria

name of column in dataframe with applicable criteria value. In the case of parameters with multiple applicable criteria (i.e. pH) the criteria should be lowest criteria. Defaults to 'criteria'.

Value

dataframe with additional "Results_cen" column


donco/odeqassessment documentation built on Dec. 22, 2024, 2:29 p.m.