开发者

Ruby (Rails): export db data for SPSS

I have a Rails application to do web surveys. It stores answers to multiple-choices (fixnum) questions into sqlite3. Is there any ruby gem that I can 开发者_开发问答use to export my data into spss format ? I'd like to be able to export for SPSS version prior of 16/16 or up.

My SPSS export needs to include two files:

  • a syntax file (survey_name_SPSS_syntax_file.sps)
  • a data file (survey_name_SPSS_data_file.dat)

I can change dbms if needed.


You can use pspp (gnu console tool for Linux) to convert CSV and a syntax file with the codes to SPSS. http://benpfaff.org/~blp/pspp.pdf


I'm going to roll my own solution based on the limesurvey spss export function page. I'll let everyone here know, If and how I achieve It. :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜