GQdk {lme4}R Documentation

Sparse Gaussian Quadrature grid

Description

Generate the sparse multidimensional Gaussian quadrature grids

Usage

  GQdk(d = 1L, k = 1L)

Arguments

d

integer scalar - the dimension of the function to be integrated with respect to the standard d-dimensional Gaussian density

k

integer scalar - the order of the grid. A grid of order k provides an exact result for a polynomial of total order of 2k - 1 or less multiplied by the

Value

a matrix with d + 1 columns. The first column is the weights and the remaining d columns are the node coordinates.

Note

The number of nodes gets very large very quickly with increasing d and k. See the charts at http://www.sparse-grids.de.

Examples

GQdk(2,5)

[Package lme4 version 1.1-5 Index]