Announcement

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

  • option cre not allowed

    I have the current code:

    xtset stfcid year

    xtreg good_outcome placement_duration i.child_race ageatstart i.sex phys_abuse sex_abuse neglect alcohol_parent drug_parent alcohol_child drug_child removal_child_dis child_behavior_problem parent_death parent_jail no_cope abandonment relinquishment housing mental_retardation visual_hearing_dis physical_dis emotion_disturb other_dis i.current_placement i.rural_urban i.parent_1_race parent_1_initial_age i.ctkfamst i.foster_fam_struct i.casegoal i.state i.year, cre vce(cluster child_placement)

    where stfcid is the id for each child, and child_placement is an id for each placement for each child. I get the error "option cre is not allowed" and am not sure why?

  • #2
    Which version of Stata are you using? The cre option is part of StataNow, so you will probably not be able to use it if you have an earlier version.

    Comment


    • #3
      I'm using Stata 18.0. So cre is not available in this version?

      Comment


      • #4
        I don't believe so.

        Comment


        • #5
          Ah yes I think I needed to update it. Thanks so much!

          Comment

          Working...
          X