Hi everyone,
It seems like STATA skips over test1 and test2 observations as my new variables maxtest1 and maxtest2 are test3 observations. It seems like my forvalues m=1/3 is right. Please tell me what's wrong in the code. Thank you in advance.
local maxtest maxtest1 maxtest2 maxtest3
local i=1
foreach value of local maxtest {
gen `value'=.
forvalues m=1/3 {
replace `value'=test`m' if test1effort==`i'&test2effort==`i'&test3effort==`i'
}
}
Related Posts with Forvalues skip the first two observations
Lagrange MultiplierWhat is the purpose of Lagrange Multiplication in Heteroscedasticity? …
change to long formatI want to change the following dataset to long format. The data example is given below: There are th…
Major concern about xtdidregress after checkingDear all Statalist, I am concerning the syntax for checking did released by Stata called xtdidregres…
Original data source for colon.dta in strsHello! everyone, I use "colon.dta" in strs to estimate relative survival in my job, but the difficu…
Dropping the whole group based on condition relating to missing variableDear all, Today I found a problem regarding dropping the whole group conditionally. This time it se…
Subscribe to:
Post Comments (Atom)
0 Response to Forvalues skip the first two observations
Post a Comment