Learn R Programming

brt (version 1.3.0)

dtavg: Average of the Student t Distribution

Description

Average of the Student t Distribution

Usage

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

Run this code
# NOT RUN {
x=seq(from=-10, to=10, length.out=100)
ggplot2::qplot(x, ptavg(x, df=3, hi=3), geom='line')
# }

Run the code above in your browser using DataLab