Learn R Programming

semPower (version 1.0.0)

semPower.powerPlot.byN: sempower.powerPlot.byN

Description

show 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.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

Run this code
# NOT RUN {
semPower.powerPlot.byN(effect = .05, effect.measure = "RMSEA", 
                       alpha = .05, power.min = .05, power.max = .999, df = 200)
# }

Run the code above in your browser using DataLab