Learn R Programming

semPower (version 1.0.0)

semPower.compromise: sempower.compromise

Description

Performs a compromise power analysis, i.e. determines the critical chi-square along with the implied alpha and beta, given a specified alpha/beta ratio, effect, N, and df

Usage

semPower.compromise(effect = NULL, effect.measure = NULL, abratio = 1, N,
  df, p = NULL, SigmaHat = NULL, Sigma = NULL)

Arguments

effect

effect size specifying the discrepancy between H0 and H1

effect.measure

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

abratio

the ratio of alpha to beta

N

the number of observations

df

the model degrees of freedom

p

the number of observed variables, required for effect.measure = "GammaHat", "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.

Value

list

Examples

Run this code
# NOT RUN {
cp.ph <- semPower.compromise(effect = .08, effect.measure = "RMSEA", abratio = 1, N = 250, df = 200)
summary(cp.ph)
# }

Run the code above in your browser using DataLab