Announcement

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

  • why cluster doesn't work in vce option?

    Hi,

    I'm trying to run this code in Stata

    Code:
    iebaltab age internet household_members age_y_member_1 educ_member_1 d12a_1 if age!=., grpvar(treatment) ///
    vce(cluster number_school) ///
    savexlsx("$table/base_balance.xlsx") replace ftest ///fmissok
    However, Stata generate this answer


    Code:
    The cluster variable in vce(cluster number_school) does not exist or is invalid for any
            other reason. See help vce_option for more information.
    number_school is a string variable, and it's like "C007". Every observation has a value in number_school, so I don't understand what is wrong with the code, any ideas?
    Last edited by Araceli Ramirez; 30 Jan 2024, 21:21. Reason: cluster
Working...
X