Creating samples from H1, given alpha, effect size (d) and power

samples30(Nsample = 100, alpha, effectSize, pow, samp)

Arguments

Nsample

It can be fixed or given by the user

alpha

level of significance (α = probability of type I error)

effectSize

the hypothesized effect size

pow

the desired power (1−β)

samp

The output of samplesH1 function, it is necessary for Nest here

Value

Simulated likelihood ratios L1x, L0x and Lplus0x

Examples

if (FALSE) {
samples30(Nsample = 100, alpha = 0.05, effectSize = 0.2, pow = 0.95, samp = samplesH1)
}