i am using Stata 14.
levelsof cropcode, local(code)
foreach x in local `code' { tabstat acd ack if cropcode==`x' & & state_s==1, stat(su) }
After running above command, i get error local not found
Related Posts with foreach
Differences between "icc" and "estat icc" estimates?Dear stata users I am trying to estimate the intra-class correlation of measures performed by sever…
Decission between fixed and random effectsHello, i should perform panelregressions with industry and year fixed effetcs. The F test shows i s…
Control and Instrument VariablesHello, If have got an ecometric question regarding the 2sls approach. Is it appropriate to use a v…
What is the relationship between sample size and Type I error?Dear clever statistics people, I am writing a paper using a RD-design on three different data sets.…
Analyzing the dataHi. I have a dataset with neary one million individuals and their hospitalizations (> 1 hospitali…
Subscribe to:
Post Comments (Atom)
0 Response to foreach
Post a Comment