gauss.quad.prob: Gaussian Quadrature

Description Usage Arguments Author(s) Source

View source: R/auxiliary_gauss.quad.R

Description

This function calculates nodes and weights for Gaussian quadrature in terms of probability distributions. See help("gauss.quad.prob") from package statmod.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
gauss.quad.prob(
  n,
  dist = "uniform",
  l = 0,
  u = 1,
  mu = 0,
  sigma = 1,
  alpha = 1,
  beta = 1
)

Arguments

n

number of nodes and weigh

dist

distribution that Gaussian quadrature is based on, one of "uniform", "normal", "beta" or "gamma"

l

lower limit of uniform distribution

u

upper limit of uniform distribution

mu

mean of normal distribution

sigma

standard deviation of normal distribution

alpha

positive shape parameter for gamma distribution or first shape parameter for beta distribution

beta

positive scale parameter for gamma distribution or second shape parameter for beta distribution

Author(s)

Original version by Gordon Smyth

Source

Gordon Smyth with contributions from Yifang Hu, Peter Dunn and Belinda Phipson. (2011). statmod: Statistical Modeling. R package version 1.4.11. https://CRAN.R-project.org/package=statmod


gforge/lqmm_gforge documentation built on Dec. 20, 2021, 10:42 a.m.