Announcement

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

  • How to plot overlaying normal distributions

    Hi all,

    I'm trying to do something for which I can't really find any previous posts. Basically, I want to create a single graph with two overlaying standard normal distributions. The thing is that I want the two distributions to have the same mean, but a different standard deviation.

    Thanks a lot.

  • #2
    You can test transparency in the process:

    https://www.statalist.org/forums/for...s-transparency

    Comment


    • #3
      Something like this?

      Code:
      twoway function y = normalden(x, 0, 1), range(-3 3)|| function y = normalden(x, 0, 2), range(-6 6)
      Twoway graphs have a handy ability to graph functions which will be useful here. See -help twoway function- for more info.

      Comment


      • #4
        Thanks Andrew and Leonardo for your helpful answers, it works now!

        Comment

        Working...
        X