# Analyses
> This component contains computer code scripts (written in R) that generate simulated data and execute our planned meta-analyses for gender- and race-based stereotype threat studies.
## R Project file
> * analyses.Rproj
> * .Rproj refers to an R project file which automatically sets your R session's working directory to the folder that the .Rproj is in (for more details, see [Using Projects](https://support.rstudio.com/hc/en-us/articles/200526207-Using-Projects) or [Workflow: projects](https://r4ds.had.co.nz/workflow-projects.html))
## Scripts
> * ste_ctma_gender_simulation.Rmd
> * generates a single, plausible (but not-real) gender-based stereotype threat dataset for meta-analyses following our planned procedures
> * ste_ctma_race_simulation.Rmd
> * generates a single, plausible (but not-real) race-based stereotype threat dataset for meta-analyses following our planned procedures
> * ste_ctma_combined_simulation.Rmd
> * reads data generated and prepared in the scripts above in order to meta-analyze data following our planned procedures
> * nguyen_ryan_2008_comparegroup_analysis.Rmd
> * using Zigerell (2017) and Nguyen & Ryan (2008) supplementary data, tests whether significant and predicted effects are less likely to be published if the design included a comparison group
## Output
> View the "results" from the .Rmd scripts described above
> * ste_ctma_gender_simulation.html
> * ste_ctma_race_simulation.html
> * ste_ctma_combined_simulation.html
> * nguyen_ryan_2008_comparegroup_analysis.html
> For your own analyses, we recommend following these steps:
> 1. download the analyses component
> 2. unzip the analyses component on your computer
> 3. download and save the data component in the unzipped analyses folder
> 4. unzip the data component
> 5. open the .Rproj (this opens R Studio and sets the working directory for you)