validateInput: validateInput

Description Usage Arguments

View source: R/validator.R

Description

Validates input for power calcuation function

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
validateInput(
  power.type = NULL,
  effect = NULL,
  effect.measure = NULL,
  alpha = NULL,
  beta = NULL,
  power = NULL,
  abratio = NULL,
  N = NULL,
  df = NULL,
  p = NULL,
  SigmaHat = NULL,
  Sigma = NULL,
  power.min = alpha,
  power.max = 0.999,
  effect.min = NULL,
  effect.max = NULL,
  steps = 50,
  linewidth = 1
)

Arguments

power.type

type of power analyses, one of "a-priori", post-hoc", "compromise", "powerplot.byN", "powerplot.byEffect"

effect

effect size specifying the discrepancy between H0 and H1

effect.measure

type of effect, one of "F0, "RMSEA", "Mc", "GFI", AGFI"

alpha

alpha error

beta

beta error

power

power (1-beta)

abratio

ratio alpha/beta

N

the number of observations

df

the model degrees of freedom

p

the number of observed variables, required for effect.measure = "GFI" and "AGFI"

SigmaHat

model implied covariance matrix

Sigma

population covariance matrix

power.min

for plotting: minimum power

power.max

for plotting: maximum power

effect.min

for plotting: minimum effect

effect.max

for plotting: maximum effect

steps

for plotting: number of sampled points

linewidth

for plotting: linewidth


semPower documentation built on Nov. 2, 2021, 1:06 a.m.