Hi,
I'm new to STATA and getting the hang of it. I have a list of 10k directors who hold board positions in one or multiple countries. I'm trying to create a categorical variable where in my command is "recode uboards_fe (1 = 0) (2/8 = 1), generate(Prominent Director)" but every time I enter this command I get an error: the number of new and transformed varnames should be the same. Can someone please explain what I am doing wrong?
Regards,
Raghavendra
Related Posts with Categorical Variable error
Discrete choice experiment : WTP with effects codingHello, I'm afraid this is not strictly a stata question. I have conducted a Discrete choice experime…
Tabout and Fre suddenly not working?For some reason when I export frequency tables to excel and/or word (as .csv or .rtf files), they ar…
Break in consecutive values to identify groupsSuppose I have a dataset like this: clear set obs 20 gen x = 1 gen id = 1 in 1/10 replace id = …
Multilevel regresion code doubtHi all, I have date of 100 employees per company, for several companies. I would like to perform a …
Keep a group of observations if one record meets a certain conditionHi All, Here's an example of the sort of dataset that I'm working with: clear input studyid edvisi…
Subscribe to:
Post Comments (Atom)
0 Response to Categorical Variable error
Post a Comment