Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 1.12 KB

README.md

File metadata and controls

25 lines (14 loc) · 1.12 KB

jphon_designanalysis

Power & effect size error calculations -- materials for Kirby & Sonderegger paper (under review)

powerEs.R: core functions to fit models, run simulations using simR functionality.

roettgerEtAlData.csv: dataset from Roettger et al. (2014), J. Phonetics

runSimsJphon.R: script to run actual simulations described in article, resulting in RDS file. (Warning: takes several days!)

summarizeVisualizeRuns.R: script to generate plots from submitted article.

pwr_examples.Rmd: examples of using pwr package for simple power calculations mentioned in article text.

analysisExample.Rmd/html: explains how to carry out the kind of analysis shown in the main paper, demonstrating component functions in more user-friendly fashion than the R files.

To actually run simulations generated in paper:

  • source(runSimsJphon.R).

Because this takes several days, the resulting data file is included (runs_16Mar18_nRuns1500.rds), and you can do data summary and visualizaton reported in the paper by just running:

  • source(summarizeVisualizeRuns.R)