Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Website that converts SAS command codes into STATA?

    Hi
    Does anyone know of a website or platform that can automatically generate STATA codes from SAS codes? For e.g. , below is a SAS code but I want to generate it in STATA.
    thank you
    marital status of the reference person: 1=married/living with partner, 2=neither married nor living with partner; IF (X8023 IN (1 2)) THEN MARRIED=1; ELSE MARRIED=2;

  • #2
    Lena:
    you may want to try:
    Code:
    label define marital_status 1 "married or partnered" 2 "neither married nor partnered"
    label val marital_status marital_status
    I'm not aware of similar websites.
    Kind regards,
    Carlo
    (StataNow 18.5)

    Comment


    • #3
      If life were this easy, I would be a polyglot fluent in R, Python, Mata, and let's have some fun and throw in C for good measure.

      Comment

      Working...
      X