1This is file pnormpdf.men--Plot Normal Mixture PDF
2
3--------------------
4 1. Plot a Normal Mixture PDF Function
5 2. PLOT NORMXPDF(X,MU1,S1,MU2,S2,P) FOR X = 0 0.01 5
6 3.
7 4. Shape Parameter (location 1)       mu1:
8 4. @CE 1 0 42 50 ?
9 5. Shape Parameter (scale 1)           s1:
10 5. @CE 2 0 42 50 ?
11 6. Shape Parameter (location 2)       mu2:
12 6. @CE 3 0 42 50 ?
13 7. Shape Parameter (scale 2)           s2:
14 7. @CE 4 0 42 50 ?
15 8. Shape Parameter (mixing proportion)  p:
16 8. @CE 5 0 42 50 ?
17 9.
1810. You can specify the range of values to plot either
1911. by providing an input vector containing the explicit
2012. input values or by providing the start, increment,
2113. and stop values.
2214.
2315. Input Variable (optional):
2415. @CE 6 0 42 50 ? gui-variable
2516.
2617. Start Value:
2717. @CE 7 0 42 50 ?
2818. Increment Value (defaults to 0.1):
2918. @CE 8 0 42 50 ?
3019. Stop Value:
3119. @CE 9 0 42 50 ?
3220.
3321. Variable to Store the PDF Values (optional):
3421. @CE 10 0 42 50 ?
3522.
3623.
3724. Plot the Normal Mixture PDF?
38--------------------
39AN FE
40LET ZMU1 = 0
41LET ZMU2 = 0
42LET ZS1 = 1
43LET ZS2 = 1
44LET ZP = 0.5
45@IF 1 0 LET ZMU1 = _1
46@IF 2 0 LET ZS1 = _2
47@IF 3 0 LET ZMU2 = _3
48@IF 4 0 LET ZS2 = _4
49@IF 5 0 LET ZP = _5
50LET ZINC = 0.1
51@IF 8 0 LET ZINC = _8
52@IF 6 0 LET ZJUNK = NORMXPDF( _6 ,ZMU1,ZS1,ZMU2,ZS2,ZP)
53@IF 6 0 PLOT ZJUNK _6
54@IF 7 0 PLOT NORMXPDF( ZZZZ ,ZMU1,ZS1,ZMU2,ZS2,ZP) FOR ZZZZ = _7 ZINC _9
55@IF 10 0 LET _10 = YPLOT
56--------------------
57WEB HELP NORMXPDF
58--------------------
59