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
White to Black Contour graphDear all, I wonder If anyone has a tip on how to produce a contour graph that transitions from white…
Problem "too few quotes" by using a graph hbarHey Folks, i want to create a 100-Percent-Graph--bar with 14 Variables . For this i already have a …
Regression for Assessing Quality of Recorded MusicHi community, I hope everyone (and you're family and friends) are well. I am trying to decide how b…
Graph coefficients of difference in differencesHi, How could one graph this difference-in-differences on Stata? This is from Duflo (2001).The x-ax…
spost13 for orderred logit cannot be installedDear experts, I want to do brant test after ordered logit is run. I found that I need to install sp…
Subscribe to:
Post Comments (Atom)
0 Response to foreach
Post a Comment