Learn R Programming

generalCorr (version 1.2.0)

prelec2: Intermediate weighting function giving Non-Expected Utility theory weights.

Description

Computes cumulative probabilities and difference between consecutive cumulative probabilities described in Vinod (2008) textbook. This is a simpler version of the version in the book without mapping to non-expected utility theory weights as explained in Vinod (2008).

Usage

prelec2(n)

Arguments

n

A (usually small) integer.

Value

x

sequence 1:n

p

probabilities p= x[i]/n

pdif

consecutive differences p[i] - p[i - 1]

References

Vinod, H. D. `Hands-On Intermediate Econometrics Using R' (2008) World Scientific Publishers: Hackensack, NJ. https://www.worldscientific.com/worldscibooks/10.1142/6895

Examples

Run this code
# NOT RUN {
 
# }
# NOT RUN {
prelec2(10)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab