Hello I am new to Stata and I am trying to write a foreach loop code, My code is
use "/Users/elenacalifano/Desktop/DATASETS/BankFocus+Lookup"
levelsof filename , local(cnt)
local i=0
foreach c of local cnt {
clear
import delimited "/Users/elenacalifano/Desktop/DATASETS/RISK.WORLDFIN-MR.GMES/RISK.WORLDFIN-MR.GMES //`c'"', varnames(1)
gen filename="`c'"
local i=`i'+1
save "/Users/elenacalifano/Desktop/DATASETS/2023.04.07.RISK.WORLDFIN-MR.GMES/RISK.WORLDFIN-MR.GMES//bank`i'.dta", replace
}
and gives the error r(100) using required. Could anybody help me with this ? Thankyou in advance
Related Posts with foreach loop error r(100) using required
Regress data with multiple imputation using micombineDear stata-community, we are working on a regression model using SCF-data (https://www.federalreser…
Interpreting the marginal effect in Probit with a logged transformed covariateHi everyone, I have a challenge with interpreting the marginal effect in Probit model with a logge…
generate a new variable (average over every two years)Dear StataList-ers! Help! I need somebody! My question is very basic. Panel data (countries, years…
ARDL short run coefficientDear community, I am coming back to you because I have a small problem concerning the estimation of…
MlogitHi I am stuch with simple Mlogit. I appreciate help I am trying to see which regions are attracted b…
Subscribe to:
Post Comments (Atom)
0 Response to foreach loop error r(100) using required
Post a Comment