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
How to add "tailor made" error bars to a line graph.Dear beloved all, Recently I am working on how to draw a line graph like this: Array However, my …
Question on analyzing multiple answers questionI have a data set of 987 respondents. I asked them on there most common sources of treatment and the…
ds vs display loopHello, Can anyone help me identify why: Code: foreach var of varlist `contvarlist' { …
nwcommands question: nwhierarchyI'm using nwhierarchy as part of Thomas Grund's nwcommands package. I am using something like this c…
Plotting Y1 and Y2 variable on a Time Series Line Plot Code: * Example generated by -dataex-. To install: ssc install dataex clear input double(prod op) …
Subscribe to:
Post Comments (Atom)
0 Response to Forvalues skip the first two observations
Post a Comment