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
Using Binary Explanatory Variables in Panel Dataset Regression AnalysisHello, I am using Stata 15.1 on Windows 10. I have an Unbalanced Panel Data set on crime rate (con…
Controlling for variables in stata Code: * Example generated by -dataex-. To install: ssc install dataex clear input int totalR byte(s…
quaids eta useHi, I am using the quaids command to estimate an AIDS for different meats. I am interested in how co…
Transform daily standard deviation of residuals to monthly standard deviation of residualsHello, I´m trying to obtain monthly standard deviation of residuals as a proxy for monthly idiosyncr…
price controlHi, my data includes expenditure and I matched it with prices using a time variable which indicated …
Subscribe to:
Post Comments (Atom)
0 Response to forvalues error
Post a Comment