Hi there!!!, I am trying to use "lambda" and I am following stata code from paper CEQ. They use lamda to generate a variable (apparently), but when I run code stata generate error saying that i 1_m is invalid name. State code is below
Maybe you can help to understand this, because the syntax from command is just for tabulate. Thanks, regards.
forval i=1/10 { //loop for deciles sum y`y'_BC if ym_BC_decile==`i' & i==1 [w=factor] scalar total`y'_BC_`i'= r(sum) lambda `i'_`y' = total`y'_BC_`i'/total`y'_BC } |
Comment