make_pgrid | R Documentation |
Functions for creating a probability grid using different method
make_pgrid
uses beta-distribution method
make_tgrid
uses tiered linear method
make_pgrid(n = 50L, s = 2L, trim = TRUE)
make_tgrid(n = 50L, tier = 3L, tail = 0.25)
n |
integer length of the grid. Default is 50 |
s |
beta distribution shape parameter, passed to both |
trim |
logical, should the 0 and 1 (tails of the grid) be trimmed. Default is |
tier |
integer number of tiers in the linear grid. Each tier contains |
tail |
real number representing share of grid in each tier. Default is 0.25 |
probability grid vector of length n
make_pgrid(100)
make_pgrid(100, 1, FALSE) #uniform grid including 0 and 1
make_tgrid(100,3,0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.