Main content

Home

Menu

Loading wiki pages...

View
Wiki Version:
This project contains the submitted manuscript draft, main and supplemental analysis scripts, deidentified and aggregated data (compliant with the research project team's policy on sharing data). **Instructions for reproducing our reported results:** Researchers interested in reproducing our analyses in R should do the following (note that reliability analyses cannot be reproduced with the shared data). 1. download [the zipped R project for reproducing our results][1]. 2. unzip this directory 3. open the R project in R Studio (ends in .Rproj and looks like a box) 4. Open the script 'PowersMoshontzHoyle_reproduceanalyses.R' (listed in "Files"), install any required packages as prompted by R Studio, and read the notes at the top for instructions on reproducing all or parts of our results. **More on the data we are sharing:** We do not have permission to share the raw data that we used, or some forms of aggregate data (e.g., data with information denoting campus). Some of our analyses therefore cannot be reproduced by people who don't have the raw data. To make our analyses as reproducible and transparent as possible given our data sharing limitations, we share: all analysis scripts, all analysis outputs (as .html Markdown documents), a form of the data that we can share, and a script that uses this data to reproduce all possible analyses. **More on the data scripts and output:** Our analyses were conducted in R. The code is commented and comments were written with the intention of being understandable even to people that do not know the programming language. The analysis scripts cannot be run in their entirety without the raw data, but the .html output files shows both code chunks and outputs and can be viewed in any web browser. **More on the BCSCS validation analyses:** We report some validity analyses related to our measure of trait self-control. These analyses can be reproduced using steps similar to reproducing our main analyses ([see this zipped project folder][2]). **More information about how we did each step of analysis:** ***Data Wrangling***: We received cleaned data from the project coordinators as a SAS dataset. Using R, we imported these data, created summary scores for our composite measures (see [.Rmd script][3] and [output][4]). *Note:* In the first version of this manuscript ([described in Version 2 of our preprint][5]) our measure of affect regulation was oddly computed: the project coordinators provided us BriefCOPE subscale scores rather than raw scores, so our adaptive and maladaptive measures were computed from subscales rather than the items individually. Subsequently we requested the raw items and conducted analyses using these ([described in Version 3 of our preprint][6]). As a result, we import two different raw datasets and then merge them. ***Computing Reliabilities and Descriptives***: Project staff prepared demographic summaries based on a list of included study IDs. We did not have access to demographic information about our participants. We computed variable descriptives and reliabilities (alpha and omega) in R with the psych package (see [.Rmd script][7] and [output][8]). We also produced several tables used in the manuscript and summaries that we used while writing and editing the manuscript. When possible, descriptives use the data set we share rather than the raw data. We computed a third measure of reliability, the H index (Hancock & Mueller, 2001), by taking factor scores (see [the R script ana_factorscores][9]) and entering them into [a spreadsheet][10] that was obtained from the website of [Dr. Joseph Hammer.][11] **Normality and t-tests comparing excluded/included and t-tests comparing missing/nonmissing**: We conducted some analyses in preparation for SEM analyses (see [.Rmd script][12] and [output][13]). We examined normality, looked at t-tests to understand how people who were included were different from those who were excluded, and conducted t-tests to compare people in our sample who were missing on the DV to those who were not. **SEM analyses**: SEM analyses were conducted in R. In addition to analyses that used our focal independent variable, trait self-control (see [.Rmd script][14] and [output][15]), we also conducted analyses that use conscientiousness in place of trait self-control (as described in the manuscript; see [.Rmd script][16] and [output][17]). [1]: https://osf.io/tp6c9/ [2]: http://osf,io/2sc4z [3]: https://osf.io/rw874/ [4]: https://osf.io/9wd8c/ [5]: https://osf.io/download/5caba43366464b0017a21794/?version=2&displayName=PowersMoshontzHoyle-2019-05-01T13:28:09.713Z.pdf [6]: https://osf.io/download/5caba43366464b0017a21794/?version=3&displayName=PowersMoshontzHoyle-2019-08-12T01:48:08.338Z.pdf [7]: https://osf.io/rw874/ [8]: https://osf.io/9wd8c/ [9]: https://osf.io/k6npm/ [10]: http://osf.io/7a3cb [11]: http://drjosephhammer.com/research/bifactor-analysis-resources/ [12]: https://osf.io/rw874/ [13]: https://osf.io/9wd8c/ [14]: https://osf.io/596qx/ [15]: https://osf.io/pcr5b/ [16]: https://osf.io/rs6kj/ [17]: https://osf.io/2r9mc/
OSF does not support the use of Internet Explorer. For optimal performance, please switch to another browser.
Accept
This website relies on cookies to help provide a better user experience. By clicking Accept or continuing to use the site, you agree. For more information, see our Privacy Policy and information on cookie use.
Accept
×

Start managing your projects on the OSF today.

Free and easy to use, the Open Science Framework supports the entire research lifecycle: planning, execution, reporting, archiving, and discovery.