sqi: SQI

View source: R/sqi.R

sqiR Documentation

SQI

Description

Stream quality index function

Usage

sqi(datin, wq_mod_in = NULL, hab_mod_in = NULL, lothrsh = 0.1,
  hithrsh = 0.9)

Arguments

datin

input data.frame with chemical, physical, and biological data

wq_mod_in

input model object for predicting stressed state for water quality

hab_mod_in

input model object for prediction stressed state for habitat

lothrsh

numeric indicating lower threshold for low stress

hithrsh

numeric indicating upper threshold for high stress

Details

See sampdat for required input format. wq_mod_in and hab_mod_in are both glm objects (wqglm and habglm) included with the package.

Value

a data.frame same as datin but with new columns for pChem, pHab, pChemHab, BiologicalCondtion, WaterChemistryCondition, HabitatCondition, OverallStressCondition, and StreamHealthIndex

Examples


sqi(sampdat)


SCCWRP/SQI documentation built on April 10, 2022, 1:15 p.m.