rvalues (version 0.6.3)

MakeGrid: Grid Construction

Description

Computes a grid of points on the interval (0,1). This function is useful for constructing the "alpha-grid" used in various r-value computations.

Usage

MakeGrid(nunits, type = "log", ngrid = NULL, lower = 1/nunits, upper = 1 - lower)

Arguments

nunits

The number of units in the data for which r-values are to be calculated.

type

The type of grid; type can be set to type="uniform", type="log", or type="log.symmetric".

ngrid

a number specifying the number of grid points

lower

the smallest grid point; must be greater than zero

upper

the largest grid point; must be less than one

Value

A vector of grid points in (0,1).

Details

If nunits \(\le 1000\), the default number of grid points is equal to nunits. When nunits \(> 1000\), the default number of grid points is determined by $$1000 + 25*log(nunits - 1000)*(nunits - 1000)^{1/4}$$.

See Also

rvalues

Examples

Run this code
# NOT RUN {
alpha.grid <- MakeGrid(1000,type="uniform",ngrid=200)

log.grid <- MakeGrid(40,type="log")
log.grid
hist(log.grid)
# }

Run the code above in your browser using DataLab