getBetadiff: getBetadiff

View source: R/aPriori.R

getBetadiffR Documentation

getBetadiff

Description

get squared difference between requested and achieved beta on a logscale

Usage

getBetadiff(
  cN,
  critChi,
  logBetaTarget,
  fmin,
  df,
  weights = NULL,
  simulatedPower = FALSE,
  pkgEnv = NULL,
  ...
)

Arguments

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()

Value

squared difference requested and achieved beta on a log scale


semPower documentation built on Nov. 15, 2023, 1:08 a.m.