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?
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?
Comment