R/pval_zscore.R

Defines functions pval_zscore

Documented in pval_zscore

#' Compute p-values for a Z-score
#' 
#' Compute p-values for a Z-score assuming normal distribution of the z-score 
#' under the null Hypothesis H0
#' 
#' @param beta the estimate
#' @param sigma estimate's estimated variance
#' 
#' @return the p-value
#' 
#' @importFrom stats pnorm
#' 
#' @export

pval_zscore <- function(beta, sigma){
  
  2*stats::pnorm(-abs(beta/sigma))
  
}

Try the ludic package in your browser

Any scripts or data that you put into this service are public.

ludic documentation built on Aug. 18, 2021, 5:08 p.m.