fabtwzCI {fabCI} | R Documentation |
Computation of a 1-alpha FAB t-interval using the w-function of the optimal FAB z-interval
fabtwzCI(y, s2, df, muw, t2w, s2w, alpha = 0.05)
y |
a numeric vector with at least two non-missing values |
s2 |
a variance estimate |
df |
degrees of freedom corresponding to |
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 |
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.
Chaoyu Yu
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)