hello, i dont know why stata keeps me showing invalid syntax in this loop:
foreach x of p524a1_14 p524a1_15 p524a1_16 p524a1_17 p524a1_18{
summ `x'
gen ING_`x' = (`x'-r(mean))/r(sd)
}
i tried with an space just before the "{" and every way but i cant do it
please send your suggestion
thank you so much
Related Posts with Invalid Syntax while looping
Collinearity issue with "mixlogit" for a discrete choice experimentHi! I've been working on a discrete choice experiment with a mixed logit model. The issue is, howev…
invalid syntax with bootstrapHi, I am new to Stata and have Stata 17. I need to use bootstrapping for my analysis and even with …
Problem with renaming variablesHi everyone, Using the code below, I am trying to rename the first 145 variables in my dataset and r…
PaneldataHey there, for a robustness test in my paper I need only those companies that are in the sample the…
Figure of cure model (stpm2)Hello everyone. I am working on cure models using stpm2. I want to estimate the cure point and wrote…
Subscribe to:
Post Comments (Atom)
0 Response to Invalid Syntax while looping
Post a Comment