View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
09039 | Bug reports | Plugins | public | 2014-05-16 23:06 | 2014-06-18 16:40 |
Reporter | jboogie21 | Assigned To | mfaber | ||
Priority | normal | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.05+ | ||||
Fixed in Version | 2.05+ | ||||
Summary | 09039: exporting to STATA (.xml) format not working properly | ||||
Description | I'm trying to export survey results to STATA (.xml). The plugin does not keep the token fields as variable names. That is, <type varname=""> is blank. The token field name should go between the quotes. Also it is supposed to export the responses as answer codes. For me it is exporting the actual response. So it's saying "Strongly Agree", "Agree", etc. rather than the code 1, 2, 3, etc. | ||||
Steps To Reproduce |
| ||||
Additional Information | STATA version 12. However, you can see the missing and incorrect info in the XML file before STATA. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 140422 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Chrome | ||||
Database type & version | MySQL 5.0.95 | ||||
Server OS (if known) | RHEL 6 | ||||
Webserver software & version (if known) | Apache 2.2.3-83 | ||||
PHP Version | 5.3.3 | ||||
jboogie21, can you please attach a short sample survey that has the issue with the missing/wrong labels? |
|
I just uploaded an archive file with sample data. |
|
Jboogie21: STATA only uses value labels on numerical variables. If the answer codes are not numerical the plugin exports the full text-answer. |
|
mfaber, can you please add an according hint to the documentation and maybe let the Stata export try a decent conversion of the answer code to a number (A1 -> 1) |
|
mfaber: That makes sense. As c_schmitz suggested, I think a statement in the documentation would be very helpful. Related to my other question, do you know why the token name fields are not maintaining when exporting to STATA? |
|
I added a note regarding value labels in the wiki. Reluctant to change the plugin in a way that it changes the underlying answer codes during export. Feels like tampering with the data to me. If someone wants to have a properly labelled data set, it's easy to use numerical answer codes. About the token name fields: I never used them myself so I might have just overlooked these fields while developing the plugin. Will try to come up with a fix in the next few days. Thanks for reporting this issue! |
|
jboogie: I attached a new version of the stata_writer plugin. If you can, please copy the file to application\core\plugins\ExportSTATAxml\ in your limesurvey installation directory. Please give me feedback if the additional token fields are exported ok then. |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=14226 |
|
It works as expected. This is exciting! |
|
LimeSurvey 2.05+ Build 140618 released. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2014-05-16 23:06 | jboogie21 | New Issue | |
2014-05-17 04:20 | mfaber | Assigned To | => mfaber |
2014-05-17 04:20 | mfaber | Status | new => assigned |
2014-05-17 04:24 | mfaber | Note Added: 29975 | |
2014-05-19 15:00 | jboogie21 | File Added: survey_archive_975791.lsa | |
2014-05-19 15:01 | jboogie21 | Note Added: 29982 | |
2014-05-19 21:03 | mfaber | Note Added: 29984 | |
2014-05-20 12:55 | c_schmitz | Note Added: 29993 | |
2014-05-20 16:14 | jboogie21 | Note Added: 30012 | |
2014-05-20 23:08 | mfaber | Note Added: 30014 | |
2014-05-23 17:59 | mfaber | File Added: STATAxmlWriter.php | |
2014-05-23 18:03 | mfaber | Note Added: 30016 | |
2014-05-23 18:04 | mfaber | Status | assigned => feedback |
2014-05-26 21:09 | mfaber | Changeset attached | => LimeSurvey master 4578772a |
2014-05-26 21:09 | mfaber | Note Added: 30023 | |
2014-05-26 21:09 | mfaber | Resolution | open => fixed |
2014-05-26 21:10 | mfaber | Status | feedback => resolved |
2014-05-26 21:10 | mfaber | Fixed in Version | => 2.05+ |
2014-05-30 17:01 | jboogie21 | Note Added: 30038 | |
2014-06-18 16:40 | c_schmitz | Note Added: 30176 | |
2014-06-18 16:40 | c_schmitz | Status | resolved => closed |