get squared difference between requested and achieved beta on a logscale
getBetadiff(
cN,
critChi,
logBetaTarget,
fmin,
df,
weights = NULL,
simulatedPower = FALSE,
pkgEnv = NULL,
...
)
squared difference requested and achieved beta on a log scale
current N
critical chi-square associated with chosen alpha error
log(desired beta)
minimum of the ML fit function
the model degrees of freedom
sample weights for multiple group models
whether to perform a simulated (TRUE) (rather than analytical, FALSE) power analysis.
local pkgEnv containing iterationCounter.
other parameter passed to simulate()