Announcement

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

  • ASECWT Weights

    How exactly do I use ASECWT in graphs, regressions, descriptive analysis, other functions?
    Based on my readings it seems we just put the command [pweight = ASECWT] at the end of the regression or graphs, correct?? Or do I divide/multiply the target variable??
    when I put it at the end of a twoway line, it gives me an error ;

    . twoway line g_income year if g == 0 || line g_income year if g == 1, legend(label(1 "Females") label(2 "Males")) ytitle("Average Income") [pweight = asecwt_rounded]

    option [ not allowed
    r(198);


    please suggest.
    Thanks.

  • #2
    I don't know what "ASECWT"s are, but the use of weights is part of the command, not part of the options and therefore goes before the comma; I have no idea whether this will solve your problem as there is way too little information presented (including no -dataex- data example which could be used to test code)

    Comment


    • #3
      Thanks Rich.
      I am new to this platform. Not sure how to attach the data...its a 144mb csv file that i imported in Stata. Please suggest.

      Comment


      • #4
        please read the FAQ - it is very unlikely that anything more than a relevant sample will be needed; is it the case that what I suggested above did not solve your problem? in what way?

        Comment

        Working...
        X