Difference between revisions of "Error Messages/42458"
(Created page with '= Error Messages = The first parameter of CumDist, «p», must be non-decreasing along ''I''. The second parameter of CumDist, «r», must be strictly increasing along…') |
|||
Line 1: | Line 1: | ||
− | + | [[Category: Error messages]] | |
− | + | == Error messages == | |
− | |||
− | = | + | <pre style="background:white; border:white; margin-left: 1em; font-style:italic"> |
+ | The first parameter of CumDist, «p», must be non-decreasing along «I». | ||
+ | The second parameter of CumDist, «r», must be strictly increasing along «I». | ||
+ | </pre> | ||
− | + | == Cause == | |
− | You might encounter the second error (for «r») if you specified the wrong index parameter. Suppose you have P and R indexed by J, but you wrote: | + | When using [[CumDist]], you specify a series of "way points", (p<sub>i</sub>, r<sub>i</sub>), each specifying a value from a range of possible values and a cumulative probability. [[CumDist]] expects you to specify these in order. The set of range values, ''r<sub>i</sub>'' must be strictly increasing, meaning that ''r<sub>i</sub> < r<sub>i+1</sub>''. The set of cumulative probabilities must be non-decreasing, so that ''p<sub>i</sub> ≤ p<sub>i+1</sub>''. One of the above messages appear when one or the other of these is violated. |
+ | |||
+ | You might encounter the second error (for «r») if you specified the wrong index parameter. Suppose you have <code>P</code> and <code>R</code> indexed by <code>J</code>, but you wrote: <code>CumDist(P, R, I)</code>. According to Analytica's conventions, <code>P</code> and <code>R</code> are implicitly constant along <code>I</code>, since they don't explicitly contain that index. Since <code>R</code> is constant, it is not strictly increasing. | ||
+ | |||
+ | ==Remedy== | ||
+ | Fix the parameters to [[CumDist]] to be increasing or non-decreasing, as specified. | ||
+ | |||
+ | ==See Also== | ||
+ | * [[Function calls and parameters]] | ||
+ | * [[Function parameter qualifiers]] | ||
+ | * [[CumDist]] |
Latest revision as of 21:01, 21 April 2016
Error messages
The first parameter of CumDist, «p», must be non-decreasing along «I». The second parameter of CumDist, «r», must be strictly increasing along «I».
Cause
When using CumDist, you specify a series of "way points", (pi, ri), each specifying a value from a range of possible values and a cumulative probability. CumDist expects you to specify these in order. The set of range values, ri must be strictly increasing, meaning that ri < ri+1. The set of cumulative probabilities must be non-decreasing, so that pi ≤ pi+1. One of the above messages appear when one or the other of these is violated.
You might encounter the second error (for «r») if you specified the wrong index parameter. Suppose you have P
and R
indexed by J
, but you wrote: CumDist(P, R, I)
. According to Analytica's conventions, P
and R
are implicitly constant along I
, since they don't explicitly contain that index. Since R
is constant, it is not strictly increasing.
Remedy
Fix the parameters to CumDist to be increasing or non-decreasing, as specified.
Enable comment auto-refresher