Learn R Programming

fabCI (version 0.2)

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

Description

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

Usage

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.

Examples

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab