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
Calculating difference between observations and sumDear experts, I'm wondering whether you can help me. I wanted to calculate the age similarity based…
Warning strata using hotdeck commandHello, I am imputing data using hotdeck command. Just so you may know exactly how I am doing this, …
het() option - Which variables do I have to include?Hello, I am dealing with an intreg model, which does not meet the assumption of homoskedasticity. I…
Interactive do File à la C++/PythonI have 2 datasets: A.dta, and B.dta. I want the same set of codes to run on A & B depending on t…
Bank's Cost efficiency and Lerner index for competition estimation in panel data using Stochastic Frontier AnalysisDear Experts, Can anyone help me to estimate Bank's Cost efficiency and Lerner index for competitio…
Subscribe to:
Post Comments (Atom)
0 Response to encode foreach error
Post a Comment