Announcement

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

  • Overlay twoway scatter plot after using lfit

    Hello everyone,
    I am attempting to create a fitted straight line in my graph. When I use lfit, the result is overlay. How can I correct this? For better understanding, I have attached two images with this post. Any advice would be greatly appreciated!
    Thank you.

    Best regards,
    Rafsan

    I used the below code:

    twoway scatter sumdcase changeNL, xlab(-100(20)-20, grid) yscal(log) ylab(100 1800, grid) xtitle(% Difference 2020May to 2020March) ytitle(Total CovidCase March2022 to May2022) || lfit sumdcase changeNL





    Attached Files
Working...
X