Skip to content

Commit

Permalink
Merge pull request #120 from USEPA/119-update-mc2-agg-t-wells
Browse files Browse the repository at this point in the history
119 update mc2 agg t wells
  • Loading branch information
madison-feshuk authored Aug 14, 2023
2 parents a15188d + 576f5a0 commit de9adbc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions R/mc2_mthds.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
#'
#' \subsection{Aggregation Methods}{
#' \describe{
#' \item{agg.mean.rep.apid}{Aggregate technical test replicates (wllt=t) by taking the plate-wise mean per sample id (spid), assay plate (apid), and concentration index (cndx).}
#' \item{agg.median.rep.apid}{Aggregate technical test replicates (wllt=t) by taking the plate-wise median per sample id (spid), assay plate (apid), and concentration index (cndx).}
#' \item{agg.percent.rep.spid}{Use for binary data. Aggregate technical replicates as percentage by taking the sum of hits relative to total replicates per sample id (spid) and concentration index (cndx); cval = (sum(rval)/.N)*100.}
#' \item{agg.percent.rep.spid.min1}{Use for binary data. Aggregate technical replicates as percentage by taking the sum of hits relative to total replicates per per sample id (spid) and concentration index (cndx), where there is more than one replicate; cval = (sum(rval)/.N)*100, where .N>1.}
#' \item{agg.mean.rep.apid}{Aggregate technical replicates by taking the plate-wise mean per
#' sample id (spid), assay plate (apid), and concentration index (cndx).}
#' \item{agg.median.rep.apid}{Aggregate technical replicates by taking the plate-wise median per
Expand Down Expand Up @@ -174,15 +178,15 @@ mc2_mthds <- function() {

agg.mean.rep.apid = function() {

e1 <- bquote(dat[ , cval := mean(cval),
e1 <- bquote(dat[wllt=="t", cval := mean(cval),
by = list(acid, spid, apid, cndx)])
list(e1)

},

agg.median.rep.apid = function() {

e1 <- bquote(dat[ , cval := median(cval),
e1 <- bquote(dat[wllt=="t", cval := median(cval),
by = list(acid, spid, apid, cndx)])
list(e1)

Expand Down

0 comments on commit de9adbc

Please sign in to comment.