Announcement

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

  • How to recreate analyses from SAS in STATA

    Hello,

    I am trying to run parallel analyses across multiple studies with slightly different designs; another team we are working with used SAS for their analyses, but our data and other project analyses are in STATA. Does anyone have advice about how best to translate the following code from SAS into STATA? Any advice is very welcomed.

    proc genmod data=tomod descending;
    class studyid visit (desc) group_assigned (desc) orientation (desc);
    model complete=visit group_assigned orientation/dist=binomial link=log type3;
    repeated subject=studyid;
    format group_assigned groupf.;
    run;

    Thanks much!

  • #2
    Welcome to Statalist.

    This might help.

    https://stats.idre.ucla.edu/other/mult-pkg/whatstat/
    -------------------------------------------
    Richard Williams, Notre Dame Dept of Sociology
    StataNow Version: 18.5 MP (2 processor)

    EMAIL: [email protected]
    WWW: https://www3.nd.edu/~rwilliam

    Comment


    • #3
      You could start from something along these lines.
      Code:
      use tomod, clear
      xtgee complete i.(visit group_assigned orientation), i(studyid) family(binomial) link(log)

      Comment

      Working...
      X