semPower.powerPlot.byN: sempower.powerPlot.byN

Description Usage Arguments Value Examples

View source: R/plots.R

Description

show a plot showing power as function of N for a given effect and alpha

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
semPower.powerPlot.byN(
  effect = NULL,
  effect.measure = NULL,
  alpha,
  df,
  p = NULL,
  SigmaHat = NULL,
  Sigma = NULL,
  power.min = alpha,
  power.max = 0.999,
  steps = 50,
  linewidth = 1
)

Arguments

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

df

the model degrees of freedom

p

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

SigmaHat

model implied covariance matrix. Use in conjuntion with Sigma to define effect and effect.measure.

Sigma

population covariance matrix. Use in conjuntion with SigmaHat to define effect and effect.measure.

power.min

minimum power, must not be smaller than alpha

power.max

maximum power

steps

number of steps

linewidth

linewidth

Value

powerplot

Examples

1
2
3
4
5
## Not run: 
semPower.powerPlot.byN(effect = .05, effect.measure = "RMSEA", 
                       alpha = .05, power.min = .05, power.max = .999, df = 200)

## End(Not run)

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