MakeGrid {rvalues}R Documentation

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

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}

.

Value

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

Author(s)

Nicholas Henderson and Michael Newton

See Also

rvalues

Examples

alpha.grid <- MakeGrid(1000,type="uniform",ngrid=200)

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

[Package rvalues version 0.7.1 Index]