R/rasynorm.R

Defines functions rasynorm

Documented in rasynorm

rasynorm <-
function(n,mu=0,sigma=1,tau=0.5)
{
  if(any(sigma <= 0)) stop("standard deviation must be strictly > 0.")
  if(any(tau <= 0 | tau >= 1)) stop("tau must be between 0 and 1.")
  x = runif(n)
  qasynorm(x,mu,sigma,tau)
}

Try the dirttee package in your browser

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

dirttee documentation built on Sept. 14, 2022, 5:06 p.m.