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
What is the difference between "stack" and "pca" ?From my understanding, it seems that pca and stack syntaxes are all about suppressing two or more va…
2SLS: Interpretation of ResultsHi - I am working with panel data (US industrials, 2000-2019) and am researching the impact of firm …
Trying to open shapefile but Stata looks for .dbf fileHello, I am trying to open a shapefile under the name "pga.shp" that I downloaded from the US Geolo…
What fixed effects I should add when using triple difference in firm level?In my difference-in-difference setting (double diff), I examine the impact of anticorruption laws on…
Is there any package for stacked event-by-event estimates ?I am reading a paper of Cengiz, 2019 about using stacked event-by-event estimates for the Difference…
Subscribe to:
Post Comments (Atom)
0 Response to forvalues error
Post a Comment