Description Usage Arguments Details Value Author(s) See Also
Compute the moments of truncated normal distribution and the integral that appears in the noncentral t-distribution
| 1 2 3 4 5 | mTruncNorm(r = 1, mu = 0, sd = 1, lower = -Inf, upper = Inf, 
        approximation = c("int2", "laplace", "numerical"), 
        integral.only = FALSE, ...)
mTruncNorm.int2(r = as.integer(1), mu = 0, sd = 1, lower = -Inf, 
        upper = Inf, takeLog = TRUE, ndiv = 8)
 | 
| r | the order of moments to be computed. It could be noninteger, but has to be nonnegative. This is also the degrees of freedom for the noncentral t-distribution. | 
| mu | mean of the normal distribution, before truncating. | 
| sd | SD of the normal distribution, before truncating. | 
| lower | lower truncation point | 
| upper | upper truncation point | 
| approximation | Method of approximation.  | 
| integral.only | logical. If  | 
| takeLog | logical. If  | 
| ndiv | number of points with closes integer  | 
| ... | other arguments passed to  | 
mTruncNorm.int2 uses iterative relation over r to compute the integral iteratively starting from r=0 and r=1 whose analytic results are available. 
If r is not an integer, the nearest ndiv nonnegative integer r will be used to do divided difference polynomial interpolation. 
numeric vector. If integral.only is TRUE, this is the integral in the noncentral t-density; otherwise this is the rth moments of truncated normal distribution. 
Long Qu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.