Announcement

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

  • Local polynomial smoothing

    Dear Stata Users,

    I have the following problem.

    I use command:

    lpoly v u [aweight = gvc], degree(2) ci recast(scatter) msize(vtiny)

    to create the following graph:
    Click image for larger version

Name:	Graph2.png
Views:	1
Size:	21.8 KB
ID:	1445199



    How to show scatterplot weighted by variable gvc as in the graph below:

    twoway (scatter v u [aweight = gvc])

    Click image for larger version

Name:	graph1.png
Views:	1
Size:	18.9 KB
ID:	1445200


    Thank you in advance!

    Lucas

  • #2
    The help file says you can add plots using addplot(). Try:
    Code:
    lpoly v u [aweight = gvc], degree(2) ci noscatter addplot(scatter v u [aweight = gvc])
    Tim

    Comment


    • #3
      Thank you very much Tim! It works!
      Lucas

      Comment

      Working...
      X