R/shortest_length.R

#' @title shortest-length confidence interval for cv
#' @name shortest_length
#' @description The data frame including the values of a and b for the
#'              shortest-length confidence interval for the coefficient of
#'              variation (cv)
#' @references Panichkitkosolkul, W., 2013, Confidence Intervals for the
#'                 Coefficient of Variation in a Normal Distribution with a
#'                 Known Population Mean, Journal of Probability and Statistics,
#'                 2013, 1–11, \href{http://doi.org/10.1155/2013/324940}{http://doi.org/10.1155/2013/324940}
#' @export
#' @import dplyr SciViews boot R6 utils
NULL
#' @importFrom stats quantile sd qchisq qnorm
#' @importFrom MBESS conf.limits.nct
NULL
shortest_length = data.frame(
    # ----------- "a" and "b" values for shortest-length CI -----------
    v = c(  # degrees of freedom
        2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
        20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 40, 50, 60, 70, 80,
        90, 100, 150, 200, 250, 300, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
        13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
        29, 30, 40, 50, 60, 70, 80, 90, 100, 150, 200, 250, 300, 2, 3,
        4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
        21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 40, 50, 60, 70, 80, 90,
        100, 150, 200, 250, 300
    ),
    al = c(  # al is the allowed type I error probability
        0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
        0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
        0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
        0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
        0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05,
        0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05,
        0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05,
        0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05,
        0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05,
        0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01,
        0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01,
        0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01,
        0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01,
        0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01
    ),
    a = c(  # a is an attribute for the length of CI
        0.2065, 0.5654, 1.02, 1.5352, 2.093, 2.6828, 3.2981, 3.9343,
        4.5883, 5.2573, 5.9397, 6.6337, 7.3382, 8.0521, 8.7745,
        9.5047, 10.2421, 10.9861, 11.7362, 12.4919, 13.253,
        14.0191, 14.7899, 15.565, 16.3443, 17.1275, 17.9144,
        18.7049, 19.4987, 27.5919, 35.9012, 44.3661, 52.9501,
        61.629, 70.386, 79.2086, 124.0372, 169.6646, 215.8057,
        262.3132, 0.1015, 0.3449, 0.6918, 1.1092, 1.5776,
        2.0851, 2.6235, 3.1874, 3.7729, 4.3768, 4.9967,
        5.6308, 6.2776, 6.9357, 7.6042, 8.282, 8.9685,
        9.6629, 10.3647, 11.0733, 11.7882, 12.5092,
        13.2357, 13.9675, 14.7043, 15.4458, 16.1917,
        16.9419, 17.6961, 25.4233, 33.4085, 41.5794, 49.8923,
        58.3183, 66.8374, 75.4347, 119.2737, 164.0642,
        209.4667, 255.3057, 0.02, 0.114, 0.2937, 0.5461,
        0.8567, 1.2143, 1.6107, 2.0394, 2.4958, 2.976, 3.4771,
        3.9968, 4.5329, 5.084, 5.6487, 6.2256, 6.8139, 7.4126,
        8.0209, 8.6383, 9.264, 9.8976, 10.5385, 11.1864, 11.8408,
        12.5014, 13.1678, 13.8397, 14.517, 21.5331, 28.8879,
        36.4863, 44.2711, 52.2044, 60.2597, 68.4177, 110.3262,
        153.4834, 197.444, 241.9776
    ),
    b = c(  # b is an attribute for the length of CI
        12.5208, 13.1532, 14.18, 15.3498, 16.5807, 17.8391,
        19.1099, 20.3848, 21.6598, 22.9325, 24.2016,
        25.4666, 26.7269, 27.9825, 29.2334, 30.4796,
        31.7212, 32.9585, 34.1915, 35.4205, 36.6455,
        37.8668, 39.0844, 40.2986, 41.5095, 42.7171,
        43.9217, 45.1234, 46.3222, 58.1755, 69.8342,
        81.3479, 92.7487, 104.0584, 115.2925, 126.4628,
        181.6128, 235.9748, 289.8273, 343.3155, 15.1194,
        15.5897, 16.5735, 17.7432, 18.9954, 20.2863,
        21.5953, 22.9118, 24.2303, 25.5476, 26.8618,
        28.1717, 29.4769, 30.777, 32.072, 33.3619,
        34.6467, 35.9266, 37.2016, 38.472, 39.7379,
        40.9995, 42.257, 43.5105, 44.7601, 46.006,
        47.2483, 48.4872, 49.7229, 61.9217, 73.892,
        85.6914, 97.3573, 108.9153, 120.3839, 131.7767,
        187.9079, 243.1025, 297.691, 351.8461, 20.8264,
        20.9856, 21.8371, 22.9867, 24.2618, 25.6017,
        26.9749, 28.3643, 29.7602, 31.158, 32.5543,
        33.9474, 35.3358, 36.7192, 38.0968, 39.4688,
        40.8347, 42.1952, 43.5498, 44.8989, 46.2426,
        47.581, 48.9144, 50.2428, 51.5665, 52.8856,
        54.2002, 55.5107, 56.8169, 69.6808, 82.2534,
        94.6063, 106.7867, 118.8272, 130.7514, 142.5771,
        200.6194, 257.4375, 313.462, 368.9185
    )
)
MaaniBeigy/DescObs documentation built on May 23, 2019, 9:37 a.m.