Announcement

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

  • matrix operation not found

    Dear All,
    I need some advice on how to deal with an error:
    matrix operation not found
    I get the error after running this command (this is an excerpt).
    Code:
    qui tab povub80 povub85 [aw= popw], matcell(povub`i'_all)
    mat povub`i'_all=100*povub`i'_all/ r(N) // get percentage
    }
    
    *OBTAINING AVERAGE
    local i= 2
    while `i'<= 500 {
        local j= `i' - 1
        mat povub`i'_all= povub`i'_all + povub`j'_all    
        local i= `i' + 1
    }
    
    local j= `i' - 1
    local char "_all"
    foreach x of local char {
    mat povub`j'`x'= povub`j'`x'/`j'
    mat rown povub`j'`x'= poor80 nonpoor80
    mat coln povub`j'`x'= poor85 nonpoor85
    }
    
    mat povub80 povub85_all`m'= povub`j'_all
    
    mat li povub1_all
    mat li povub`j'_all

    Thanks,
    Dapel

  • #2

    Code:
     
     mat povub80 povub85_all`m'= povub`j'_all
    is a puzzle to me. What do you want that to do?

    Comment

    Working...
    X