Description Usage Arguments Examples
Calculate confidence interval for truncated normal variable
1 2  | 
meanEst | 
 mean  | 
sd | 
 standard deviation  | 
limits | 
 
  | 
alpha | 
 value specifying the interval coverage, which is   | 
gridpts, griddepth | 
 parameters for grid search used in the confidence interval
function of the package   | 
range | 
 gives the range   | 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  | library(intervals)
# one restriction -- in this case equal to a call to \code{\link{msm::qtnorm}}
int1 <- Intervals(c(-3,1))
mean = -0.2
sd = 1
ci_tnorm(meanEst = mean, sd = sd, limits = int1, alpha = 0.05)
# two intervals -- 1-alpha coverage not possible
(int2 <- Intervals(matrix(c(-3,-2,-1,1), 
                          ncol = 2, byrow = TRUE)))
ci_tnorm(meanEst = mean, sd = sd, limits = int2, alpha = 0.05)
# two intervals -- 1-alpha coverage possible, but interval not symmetric
(int3 <- Intervals(matrix(c(-3,-2.5,-1.9,1), 
                          ncol = 2, byrow =  TRUE)))
ci_tnorm(meanEst = mean, sd = sd, limits = int3, alpha = 0.05)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.