Compute moments of univariate truncated t distribution

1 |

`a` |
the left end of the truncation interval |

`b` |
the right end of the truncation interval |

`df` |
the degrees of freedom of the t distribution |

`r` |
the degree of moment to compute |

This function computes the r-th moment of the univariate t distribution on df degrees of freedom, truncated to the interval (a,b). If parameters are vectors then the r[i]th moment is computed for each (a[i],b[i],v[i]) The methods are based on results in O'Hagan (1973) and work for df>r. Otherwise NaN is returned.

O'Hagan, A. (1973) Bayes estimation of a convex quadratic. *Biometrika* **60** (3).

1 2 3 4 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.