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

Description Usage Arguments Examples

View source: R/tpvaltreat.R

Description

Hypothesis testing using the Student t Distribution with H0: abs(mu) <= delta

Usage

1

Arguments

coefficients

a vector

delta

a postive cutoff

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(delta)
      rbind(
        data.frame(x, pval=tpvaltreat(x, delta=delta, se=1, df=3), delta=delta)
        )
    )
  )

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

Example output



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

Related to tpvaltreat in brt...