int_mat {flexmet} | R Documentation |
Numerical Integration Matrix
Description
Create a matrix for numerical integration.
Usage
int_mat(
distr = dnorm,
args = list(mean = 0, sd = 1),
lb = -4,
ub = 4,
npts = 10000
)
Arguments
distr |
A density function with two user-specified parameters. Defaults to the normal distribution (dnorm), but any density function is permitted. |
args |
Named list of arguments to distr. |
lb |
Lower bound of range over which to numerically integrate. |
ub |
Upper bound of range over which to numerically integrate. |
npts |
Number of integration points. |
Value
Matrix of two columns. Column 1 is a sequence of x-coordinates, and column 2 is a sequence of y-coordinates from a normalized distribution.
See Also
rimse th_est_ml th_est_eap sl_link hb_link
@importFrom stats dnorm
[Package flexmet version 1.1 Index]