Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.Rproj.user
.Rhistory
.RData
.Ruserdata

# Output files:
*.spv
*.xlsx
34 changes: 34 additions & 0 deletions Article10_FinancialScarcity/master_script.sps
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
* Encoding: UTF-8. /* (Automatically added by SPSS when saving the file; cannot be deleted.) */

/* CONFIGURATION: */

/* File system paths: */

* TODO: Change <project_path> to local, e.g.:
* FILE HANDLE project_dir /NAME = 'C:/Users/Daniel Morillo/Documents/Workspace/openscience'.
FILE HANDLE project_dir /NAME = '<project_path>'.

FILE HANDLE scarcity_dir /NAME = 'project_dir/Article10_FinancialScarcity'.


/* PILOT STUDY: */

/* File paths: */
FILE HANDLE pilot_data /NAME = 'scarcity_dir/Pilot - Household Task - Raw Data.sav'.
FILE HANDLE pilot_syntax /NAME = 'scarcity_dir/Pilot - Household Task - Syntax.sps'.


/* Main: */

* Read data set.
GET FILE = 'pilot_data'.
DATASET NAME DataSet1. /* Dataset name used in the syntax file. */

* Run syntax.
INSERT FILE = 'pilot_syntax'.

* Export results.
OUTPUT EXPORT /XLSX DOCUMENTFILE='scarcity_dir\Pilot.xlsx'.


/* TODO: Add syntax to run the rest of the studies. */