tpvalint: Hypothesis testing using the Student t Distribution with H0:...

Description Usage Arguments Examples

View source: R/tpvalint.R

Description

Hypothesis testing using the Student t Distribution with H0: lo <= mu <= hi

Usage

1
tpvalint(coefficients, hi, lo = -hi, se, df, log = FALSE)

Arguments

coefficients

a vector

hi

upper bound

lo

lower bound

se

standard error

df

degrees of freedom

log

the probability is in log-scale

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
x=seq(from=-30, to=30, length.out=100)

data=do.call(
  rbind
  , lapply(
    seq_len(10)
    , function(cutoff)
      rbind(
        data.frame(x, pval=tpvalint(x, lo=-cutoff, hi=cutoff, se=1, df=3), cutoff=cutoff)
        )
    )
  )

ggplot2::qplot(x, pval, data=data, color=as.factor(cutoff), linetype=as.factor(cutoff), geom='line')

Example output



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

Related to tpvalint in brt...