fabtwzCI: FAB t-interval with z-optimal w-function

Description Usage Arguments Details Author(s) Examples

View source: R/multifabCIhom.R

Description

Computation of a 1-alpha FAB t-interval using the w-function of the optimal FAB z-interval

Usage

1
fabtwzCI(y, s2, df, muw, t2w, s2w, alpha = 0.05)

Arguments

y

a numeric vector with at least two non-missing values

s2

a variance estimate

df

degrees of freedom corresponding to s2

muw

prior expectation of the mean

t2w

prior variance of the mean

s2w

assumed population variance

alpha

the type I error rate, so 1-alpha is the coverage rate

Details

Internal function for multifabCIhom. It's similar to fabtCI, the difference being that fabtwzCI uses the w-function that leads to the optimal CI if the sampling variance were known.

Author(s)

Chaoyu Yu

Examples

1
2
3
4
5
y<-rnorm(10)
fabtwzCI(y,10,9,1,5,10)
fabtwzCI(y,1/10,9,1,5,1/10)
fabtwzCI(y,10,1,9,5,10)
fabtwzCI(y,1/10,9,1,5,1/10)

fabCI documentation built on Jan. 7, 2021, 5:09 p.m.

Related to fabtwzCI in fabCI...