I am trying to encode multiple variables and replace remaining strings with a numeric character - however i am getting an error r(100)
. foreach var of varlist company_23 debt_23 pairincome {
2. encode `var', gen(_`var')
3. replace `var'=0 if `var>2500
}
varlist required
r(100);
How can i solve this?
Related Posts with encode foreach error
How to extract _n values in month.hello researchers and expert good evening, i want to calculate 5 maximum returns in a month. for dif…
principal component analysisHello stata users, I'm a student in my thesis, and I have to construct a food security indicator bas…
Merge and sum several datasetHello World ! I am working with several (almost 100) database, which all have the same configuratio…
How to do sensitivity analysis?Dear, I am new in using stata. I did a metaprop analysis using the command below metaprop Mort N, …
Correlated Random Effects Goodness of FitDear all, I have a panel with 345 observations and six variables. My cross-sectional variable is Pan…
Subscribe to:
Post Comments (Atom)
0 Response to encode foreach error
Post a Comment