prelec2 | R Documentation |

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).

```
prelec2(n)
```

`n` |
A (usually small) integer. |

`x` |
sequence 1:n |

`p` |
probabilities p= x[i]/n |

`pdif` |
consecutive differences p[i] - p[i - 1] |

Prof. H. D. Vinod, Economics Dept., Fordham University, NY

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

```
## Not run: prelec2(10)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.