Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Use of Lambda

    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
    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
    }
    Maybe you can help to understand this, because the syntax from command is just for tabulate. Thanks, regards.

  • #2
    Triplicate post.

    Comment


    • #3
      Sorry I wrote the post and say: error and then I wrote the post again but it was published both.

      Comment

      Working...
      X