Hi,
I wrote a code like
if x=="x1"|x=="x2" {
replace z=y
replace a=b
}
However, it did not work. I do not know what is wrong with it. Most of the answer I have found use if in for loop, but it should work alone as well, isn't it?
Can you please help!!
Thank you so much.
(Sorry for the basic stuff)
Related Posts with If else loop in Stata
Mismatch between date formatted as string and numeric dateDear all, I am processing hourly time series data (DD.MM.YYYY hh:mm), where the date variable is fo…
Insufficient observations with bsrifhdregHello, I was trying to conduct quantile regressions with fixed effects using the following command …
sampleQuery …
Graph legend(off) does not work Hello, I have health expenditure data for 20 countries covering 1971-2019 which looks like below. …
Analysis of multiple outcome measurements with censored dependent variablesOur working group has a data set that contains about 10 measured urinary pesticides or their metabol…
Subscribe to:
Post Comments (Atom)
0 Response to If else loop in Stata
Post a Comment