semPower.powerPlot.byN: semPower.powerPlot.byN

View source: R/plots.R

semPower.powerPlot.byNR Documentation

semPower.powerPlot.byN

Description

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

Usage

semPower.powerPlot.byN(
  effect = NULL,
  effect.measure = NULL,
  alpha,
  df,
  p = NULL,
  SigmaHat = NULL,
  Sigma = NULL,
  power.min = alpha,
  power.max = 0.99,
  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 effect.measure = "AGFI"

SigmaHat

model implied covariance matrix. Use in conjunction with ⁠Sigma`` to define ⁠effectandeffect.measure'.

Sigma

population covariance matrix. Use in conjunction 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

## Not run: 
semPower.powerPlot.byN(effect = .05, effect.measure = "RMSEA", 
                       alpha = .05, power.min = .05, power.max = .99, df = 200)

## End(Not run)

semPower documentation built on Sept. 30, 2024, 9:24 a.m.