Description Usage Arguments Author(s) Source
View source: R/auxiliary_gauss.quad.R
This function calculates nodes and weights for Gaussian quadrature in terms
of probability distributions. See help("gauss.quad.prob")
from
package statmod
.
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
)
|
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 |
Original version by Gordon Smyth
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.