The psychds Shiny application provides a guided, step-by-step interface for creating Psych-DS compliant datasets. This guide walks through each section of the application.
The app has five sections accessible from the sidebar. After the Welcome page, the four tools are:
The dataset creation wizard has three steps:
In this step, you:
Select a project directory - This is the folder containing your research materials. We will be building a new dataset using the files you select from this directory.
Choose data files - Browse and select CSV files to include. Click on files/directories to select/deselect them.
Configure optional directories - Choose additional folders to create:
analysis/ - Analysis scripts and pipelinesmaterials/ - Study materials (stimuli, protocols,
flyers)results/ - Output figures and tablesproducts/ - Papers, presentationsdocumentation/ - Additional documentationYour original files are safe! The app only reads from your existing files to create standardized copies. Your original data is never modified.
Enter information about your dataset:
Required fields:
Author information:
Detected Variables:
The app automatically detects column names from your CSV files. Variables with the same name across files are assumed to have identical definitions.
Rename your data files using Psych-DS naming conventions.
If you selected exactly one data file, a simplified
guided panel appears instead: pick your first keyword (usually
study), give it a value, and optionally add more
keyword-value pairs. The full interface below appears when two or more
files are selected.
Select files - Check boxes to select multiple files for batch operations
Configure keywords - For each file, set values for standard keywords:
Auto-Name from Data - Automatically fill keyword values from constant columns in your data (for instance, if each file contains a column like “subject_id” with the same value in every row, you can use this column to name the file)
Preview - See the new filename as you configure keywords
Example transformation:
Original: experiment_data_2024.csv
New: study-attention_session-1_data.csv
After Step 3, you’ll be prompted to:
The data dictionary editor allows you to document all variables in your dataset.
Select a variable from the list to edit its properties:
Basic Properties:
Constraints:
Categorical Values:
For variables with a fixed set of allowed values:
Example for a “condition” variable: | Value | Label | Description | |——-|——-|————-| | control | Control Group | No intervention | | treatment | Treatment Group | Received intervention |
Define codes that represent missing values across all variables:
NA, N/A, -999,
., nullClick “Generate Human-Readable Dictionary” to create a formatted HTML document:
The HTML file is saved to your dataset folder and can be: - Opened in any web browser - Printed to PDF using Ctrl+P / Cmd+P - Shared with collaborators
Check your dataset against the Psych-DS specification:
The validator checks:
dataset_description.json)Results are shown as a checklist with:
Click on any item to see details and suggestions for fixing issues.
Browse any Psych-DS dataset interactively:
Because all Psych-DS datasets share the same structure, the explorer works on any compliant dataset, not just ones created with this app.
dataset_description.json exists and is valid
JSONdata/ folder exists with at least one data
fileFor more help, open an issue.