Data Exports, Reports, and Stats module allows you to view reports of your data, inspect plots and descriptive statistics of your data, as well as export your data to Microsoft Excel, SAS, Stata, R, or SPSS for analysis (if granted access via User Rights). If you wish to export your entire data set or view it as a report, then Report A is the best and quickest way. However, if you want to view or export data from only specific instruments (or events) on the fly, then Report B is the best choice. Once you have created a report, you may view it as a webpage, export it out of REDCap in a specified format (Excel, SAS, Stata, SPSS, R), or view the plots and descriptive statistics for that report.
1) Under the Applications menu, click on Data Exports, Reports, and Stats
2) Click on “Export Data,” either in the All data (all records and fields) row or the row next to your report name.
3) Choose the format for the data export (Excel, SPSS, SAS, R STATA or CDISC ODM (XML))
4) (Optional) To de-identify the data (i.e., if you have “full data set” export privileges but need to give a de-identified dataset to your statistician) click on the “Remove all tagged identifier fields” option. If your project uses the subjects’ MRN as the Record ID, also click on the “Hash the Record ID field.”
5) Click on “Export Data.” Data Exports
If using Excel, click on the data file to download the data.
If you’re using a stats package to analyze the data, follow the steps below.
Instructions for Windows Operating Systems:
Download and save all 3 files on the right to a common location. First, double-click on the Pathway Mapper (.bat) file, which will run quickly and invisibly. (If you are not using a Windows operating system, such as Mac or Linux, please see the Additional Instructions.) Now double-click on the *.sps file, which will open SPSS. When the file is loaded and displayed, choose Run--> All from the top menu options. This action will launch the script that will automatically read in all data and manipulate data fields with labels, option values, etc.
SPSS, R and STATA Instructions for Non-Windows Operating Systems:
Because the Pathway Mapper (.bat) file will only work on Windows operating systems, additional steps are required to correctly map the path of the SPSS syntax file to the CSV data file. In order for SPSS to read the data file, you must manually provide SPSS with the full file path of the CSV file (after downloading it to your computer). Your folder path might look similar to this: /Users/YourName/Documents/
Once you have the folder location of the CSV file, double-click the syntax file to open it in SPSS. In the syntax editor in SPSS, enter the path onto the first line of the syntax code so that NAME is now set to the full path of the file on your computer. The first line of the SPSS syntax file will look as follows:
FILE HANDLE data1 NAME='DATA.CSV' LRECL=10000.
But after appending the folder path to the file name, it will look as follows (the added folder path is in red):
FILE HANDLE data1 NAME='/Users/YourName/Documents/DATA.CSV' LRECL=10000.
Your file name and folder path will look different from the example here. Once you have completed these steps, choose Run--> All from the top menu options in SPSS to load the data.
SAS Instructions for Non-Windows Operating Systems:
Because the Pathway Mapper (.bat) file will only work on Windows operating systems, additional steps are required to correctly map the path of the SAS syntax file to the CSV data file. In order for SAS to read the data file, you must manually provide SAS with the full file path of the CSV file (after downloading it to your computer). Your folder path might look similar to this: /Users/YourName/Documents/
Once you have the folder location of the CSV file, double-click the syntax file to open it in SAS. In the syntax editor in SAS, enter the path onto the first line of the syntax code so that NAME is now set to the full path of the file on your computer. The first line of the SAS syntax file will look as follows:
... infile in file 'DATA.CSV' delimiter = ',' MISSOVER DSD lrecl=32767 firstobs=1 ;
But after appending the folder path to the file name, it will look as follows (the added folder path is in red): ... infile in file '/Users/YourName/Documents/DATA.CSV' delimiter = ',' MISSOVER DSD lrecl=32767 firstobs=1 ;
Your file name and folder path will look different from the example here. Once you have completed these steps, choose Run (or RunàSubmit) from the top menu options in SAS to load the data.
How to find the path to a file on Mac OS X 10.5
- Click on the file or folder you want the path for
- Click on ‘Finder’ in the menu bar
- ‘Services’
- ‘TextEdit’
- ‘New Window containing Selection’
A TextEdit window opens with the text (hyperlink) of the path, e.g. /Users/Jim/Music/file.mp3
Troubleshooting:
If you find that your data is misaligned, there are probably commas in the data set. Because the data comes out in .CSV format (comma-separated values), commas in the dataset will cause data to be misaligned. The stats package sees a comma in the data (usually in an open text field) and thinks the data after the comma should go into the next field, which then outs the data that should have been in the next field into the subsequent field. Open the data file and do a search and replace. Replace all commas with a pipe (|) and re-upload the data file into the stats package. Another option is to check “Remove unvalidated Text fields” (i.e. Text fields other than dates, numbers, etc.) and “Remove Notes/Essay box fields” (under the De-identification options on the Data Export page).
Please note that the REDCap Team does not have access to any statistical packages. If you need further assistance, ask a colleague who is familiar with the stats package