LRM: Logistic Regression Model Score

View source: R/chemistry.R

LRMR Documentation

Logistic Regression Model Score

Description

This function calculates the Logistic Regression Model score in order to calculate the Chemistry SQO scores for the given sites. The ultimate guide for this function is the CASQO Technical Manual Chapter 3 (end of page 31 to beginning of page 34)

Usage

LRM(chemdata)

Arguments

chemdata

a dataframe with the following headings:

StationID

AnalyteName

Result

RL

MDL

units (optional) - Metals should be in mg/dry kg (mg/kg dw) and all organic constituents should be in ug/dry kg (ug/kg dw).

fieldrep (optional) - data will be filtered to where fieldrep = 1

labrep (optional) - data will be filtered to where labrep = 1

sampletypecode (optional) - data will be filtered to where sampletypecode = Result (to avoid including data from QA/QC samples)

Examples

data(chem_sampledata) # load sample data to your environment
LRM(chem_sampledata) # get scores and see output


SCCWRP/SQOUnified documentation built on Nov. 3, 2024, 12:54 a.m.