Giter Club home page Giter Club logo

Comments (8)

sjPlot avatar sjPlot commented on June 5, 2024

As far as I know, categorical or discrete data in SPSS is always "numeric" - or what do you exactly mean?

from sjmisc.

mwh3780 avatar mwh3780 commented on June 5, 2024

Correct. The issue isn't that it is coded as "numeric", but that the value 99 gets recoded to be 6 in SPSS, creating a disconnect between how the data appears in R vs how it is outputted into SPSS.

from sjmisc.

sjPlot avatar sjPlot commented on June 5, 2024

Ah, I see! Hm, this might be an issue for the haven package. If I can reproduce this bug, I'll submit an issue there.

from sjmisc.

sjPlot avatar sjPlot commented on June 5, 2024

Does it work when you use haven::write_spss()?

from sjmisc.

mwh3780 avatar mwh3780 commented on June 5, 2024

I realized I had a typo in my original post. I meant to type sjmisc::write_spss, NOT haven::write_spss.

I currently use haven::write_sav(), but prior to Haven 1.0 I used sjmisc::write_spss and this behavior didn't occur as long as the variables were of class labelled. After Haven 1.0 was released I noticed this behavior occurring with sjmisc::write_spss.

from sjmisc.

sjPlot avatar sjPlot commented on June 5, 2024

Ok, so sjmisc::write_spss() does not work properly, but haven::write_spss()does?

from sjmisc.

mwh3780 avatar mwh3780 commented on June 5, 2024

Correct.

from sjmisc.

sjPlot avatar sjPlot commented on June 5, 2024

fixed, will commit this evening.

from sjmisc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.