fecalHormoneCalc: Calculate hormone concentration levels

Description Usage Arguments Examples

View source: R/fecalHormoneCalc.R

Description

fecalHormoneCalc takes a joined table with extract and assay data and caclualtes final hormone concentration in ng/g This is a clunky function that will only work with unaltered hormone tables
The steroid hormone concentration calculation is done following De Palma (???):

((pg/well) x ExtractVolume(uL) x Dilution Factor) / (FecalWeight(g) x SampleVolume(uL) x 1000)

Usage

1

Arguments

.data

a dataframe that contains both extract and hormone data

Examples

1
2
3
4
5
6
7
8
## Not run: 
con = fecalConnect(RMySQL::MySQL(), group = "krspfecals-aws")
extracts = tbl(con, "extracts")
cort = tbl(con, "cort")
joined = left_join(extracts, cort)
joined$cort_ng_g = fecalHormoneCalc(joined, "cort")

## End(Not run)

mwhalen18/krspfecals documentation built on Dec. 21, 2021, 11:05 p.m.