View source: R/conf_int_funcs.R
compute_CI | R Documentation |
This function computes an equal-tailed (1-alpha) selective confidence intervals.
compute_CI(vTy, vTv, sigma, truncation, alpha = 0.05, steps_lim = 50)
vTy |
y: the observed response vector |
vTv |
v: the contrast vector that defines the parameter of interest |
sigma |
The known noise standard deviation. If unknown, we recommend a conservative estimate. If it is left blank, we use the sample variance as a conservative estimate. |
truncation, |
the truncation set (object: intervals) Computes a confidence interval for the mean of a truncated normal distribution. |
alpha, |
the significance level. Default to 0.05 |
steps_lim, |
the maximum steps bisection method will take to initialize the LCB and UCB, default to 50. |
This function returns a vector of lower and upper confidence limits.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.