tavg: Average of the Student t Distribution

Description Usage Arguments Examples

Description

Average of the Student t Distribution

Usage

1
2
3
4
5
dtavg(x, df, hi = 1, lo = -hi, n = as.integer(ceiling(abs(hi - lo) * 10)),
  log = FALSE)

ptavg(x, df, hi = 1, lo = -hi, n = as.integer(ceiling(abs(hi - lo) * 10)),
  lower.tail = TRUE, log = FALSE)

Arguments

x

a vector

df

degrees of freedom

hi

upper bound of the shift range

lo

lower bound of the shift range

n

the number of bins for interpolation

log

the probability is in log-scale

lower.tail

use lower tail probablity

Examples

1
2
x=seq(from=-10, to=10, length.out=100)
ggplot2::qplot(x, ptavg(x, df=3, hi=3), geom='line')

Example output



brt documentation built on May 2, 2019, 10:22 a.m.

Related to tavg in brt...