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