R/standardize_stderr.R

Defines functions standardize_stderr

standardize_stderr <- function(query,
                               colmap,
                               verbose=TRUE){ 
    Effect <- tstat <- NULL;
    if(colmap$StdErr=="calculate"){
        messager("Calculating Standard Error...",v=verbose)
        if(all(c("Effect","tstat") %in% colnames(query)))
        query <- dplyr::mutate(query, StdErr=Effect/tstat) 
    }
    return(query)
}
RajLabMSSM/echodata documentation built on Nov. 21, 2023, 8 a.m.