-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature-Request]: export dataset from REDCap to JASP with labels #1581
Comments
Hi @iijpma , sorry this is probably not a JASP related bug. but as far as I know, the data with labels and unlabeled exported from REDcap differ only in the storage format of the values (numbers or characters), which .csv file is universal and can be imported normally in JASP. For your question, you can also export to a supported data format (.sav,.dta.....) from REDcap, taking SPSS data as an example, you can do as follows:
If you can't use commercial software, perhaps the R syntax provided by REDcap can still be tried,If the above solution does not work, you may need to manually edit the variable name and value level labels after importing the csv file. please close this issue when the above solves your problem . Cheers |
Thank you for the response. We do not have access to other statistical programs (SPSS, SAS or STATA), so we can only use JASP. Therefore, we can only use .csv and not the other supported data formats to export the datasets to JASP. |
Sorry I may have overlooked this, but it still may not be a jasp bug, maybe a feature request. For the R syntax I'm talking about, you can also export 2 files (.r & .csv) from REDcap.then:
Note that you may need some basic knowledge of R to use the above functions,and read the help documentation for these packages.This is not a JASP recommended practice, but may solve your problem temporarily |
Hi @iijpma, JASP can load SPSS files with sav and par formats, STATA files with .dta format, and SAS files with as7bdat and sas7bcat formats. All these formats contain the labels. That would be quite a bad luck if REDCap cannot convert to at least of these formats... |
As an aside and to go more towards the feature request @icekylin mentioned. But the next version of jasp (2 months out probably) will be with much better data-editing support and one of the features I was planning to implement was making sure that nominal-text-columns (as I assume your REDcap label csv data ends up as) are actually convertible to ordinal/nominal and perhaps even scale (losing information there). See #1633 Would that actually solve your problem @iijpma ? |
@JorisGoosen I think this feature request is perhaps a related data file generation (by values and labels). but I agree with your feature request about variable type conversion.Here is something about value and label records in sav (which I think you probably already know, since Readstat is mostly built on these standards). I will give you two files that exported from REDcap( R object files and csv data ). It can generate a dataset with labels following the steps I said. In fact, in SPSS and STATA software, data can be stored separately from labels. For example, the .sps I provided only stores labels and commands to generate datasets. |
This issue or pull request will be automatically closed in 42 days due to inactivity. Feel free to leave a comment if you believe this is still relevant. |
@boutinb @shun2wang & @JorisGoosen related: #611 |
We could add a "labels" import to the csv import. Where labels would be in json format. This could be a nice feature, if combined with some R code of ours that people could run to generate the json with for instance. But it will be a while before we would get to that. I think running R code during data import from random sources would be a pretty terrible idea btw. |
JASP Version
0.15
Commit ID
No response
JASP Module
No response
What analysis are you seeing the problem on?
No response
What OS are you seeing the problem on?
Windows 10
Bug Description
We want to import our datasets from REDCap to JASP. We can export an *.csv file (raw data or labels), *.sps file, *.r file, .sas syntax file, *.do file (STATA) and CDISC ODM file.
When importing the *.csv (the only supported file in JASP), we would like to have the corresponding data-labels in JASP. However, this is not the case. Since we do not have other statistical programs (we only want to use JASP), we cannot use other export options from Redcap (spss, sas or stata-files). How can we export datasets from REDCap to JASP in a way that we have all information in one file (the numbers + corresponding labels) in JASP?
Expected Behaviour
Export with all information in one file (the numbers + corresponding labels).
Steps to Reproduce
(question)
Log (if any)
No response
Final Checklist
The text was updated successfully, but these errors were encountered: