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
new table command cannot parse bracket within string variableIs this the correct place to report an apparent error in parsing? this is Stata/SE 17.0 for Windows …
[Help] Conditional logit -cmclogit-: marginal effect vs change in predicted probabilities, no matchDear Statalist, Currently using the -cmclogit- command. I've been estimating marginal effects (dydx…
Problem with putexcel using corr_svy and foreach commandsHi everyone, I'm doing a task in which I have to do cross-tab and pairwise correlations for 3 dummy …
Hte package - I cannot perform the command with a poisson distributionHello I'm using the hte package, more specifically the hte sm function, in order to obtain a multil…
New version of ipwbreg on SSCThanks yet again to Kit Baum, a new version of the ipwbreg package is now available for download fro…
Subscribe to:
Post Comments (Atom)
0 Response to encode foreach error
Post a Comment