Read stata file into sas




















Factor fct variables are what R calls categorical variables. Another thing to clean up are the blank cells. We would prefer these to be showing as NA in R, instead of an empty character. Now we have the value labels showing up, but what do Q1, Q2, and Q3 mean? Even better. Now the tibble in R contains the descriptive variable names and values from the labels stored in the original SAS data files.

To read in an SPSS. As an example, we will use the titanic. So, saveold in version n assures readability in version n - 1 and may imply readability in version n - 2 or earlier.

So, from the Stata point of view you need to be exact about which version of Stata you were using. One guess is that SAS 9. However, the answer may be just issuing the wrong command in SAS, and I hope that someone can address that. A sure fire way to export any kind of Stata data file would be to save it as a csv file via the following command in Stata:.

Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How to import a Stata file into SAS 9. Ask Question. Asked 8 years, 5 months ago. Active 8 years, 5 months ago. Viewed 4k times. I have already converted the Stata file into the old version saveold The following doesn't work for my SAS 9.

Nick Cox Add a comment. Masood Sadat Masood Sadat 7 7 silver badges 15 15 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.

Related 0. Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled. Accept all cookies Customize settings.



0コメント

  • 1000 / 1000