R/TwoSampleMean.NIS.R

Defines functions TwoSampleMean.NIS

Documented in TwoSampleMean.NIS

TwoSampleMean.NIS <-
function(alpha,beta,sigma,k,delta,margin){
    n2<-(qnorm(1-alpha)+qnorm(1-beta))^2*sigma^2*(1+1/k)/(delta-margin)^2
    n2
    n1<-k*n2
    return(n1)
}

Try the TrialSize package in your browser

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

TrialSize documentation built on July 8, 2020, 7:19 p.m.