Skip to content

Instantly share code, notes, and snippets.

@Lakens
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lakens/99244001e82ae2c4afac to your computer and use it in GitHub Desktop.
Save Lakens/99244001e82ae2c4afac to your computer and use it in GitHub Desktop.
Calculate Confidence Intervals around Effect Sizes for Within Designs using MBESS package. Use of the ci.pvaf function returns an error for within designs. The code below calculates CI for within designs.
library(MBESS)
Lims <- conf.limits.ncf(F.value = 7, conf.level = 0.90, df.1 <- 4, df.2 <- 50)
Lower.lim <- Lims$Lower.Limit/(Lims$Lower.Limit + df.1 + df.2 + 1)
Upper.lim <- Lims$Upper.Limit/(Lims$Upper.Limit + df.1 + df.2 + 1)
Lower.lim
Upper.lim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment