R/sizeparam_normal_distn.R

Defines functions sizeparam_normal_distn

Documented in sizeparam_normal_distn

#' Calculates the size paramater for a d-dimensional hyperellipsoid conforming to a normal (i.e., Gaussian) distribution.
#'
#' @param prob The target probability threshold
#' @param d Number of dimensions in the multivariate distribution
#' @return The appropriate (scalar) size parameter
#' @import stats

sizeparam_normal_distn <- function(prob,d){
  return(qchisq(prob,d))
}
meko222/SyScSelection documentation built on May 31, 2020, 12:33 a.m.