I keep getting a "varlist not allowed" error when I write my forvalues loop, but I copied the syntax from the help file. I can't figure out what I am doing wrong... Would appreciate help!
forvalues i = 1/20 {
quietly sum if visit_id == `i' & visit_id != .
local N == r(N)
display `i' _col(20) `N'
}
Related Posts with forvalues error
Problems imputing only item non-response with multiple imputationProblem: I am having problems imputing only item non-response (but leave unit response as missing) w…
Plotting Gamma function simultaneouslyAny possibility one could plot two different gamma distributions at the same time …
How can I use Stata to plot a graph like this?Dear all, Can I use Stata to plot a graph to visualize the treatment statuses of each observation in…
Sample Distribution by Year and IndustryGreetings Everyone! Hopefully, you will be doing well, I want to add percentage of each industry in…
Updating stata journal packages and ssc (the parallel module)Hi all, Recently I realized that the parallel module, which I maintain, has not been updated in SSC…
Subscribe to:
Post Comments (Atom)
0 Response to forvalues error
Post a Comment