confint_vector: Confidence interval calulation for sample

Description Usage Arguments Value Author(s) Examples

View source: R/base_confint.R

Description

Confidence interval calulation for sample

Usage

1
confint_vector(x, sigma = -1, alpha = 0.05)

Arguments

x

a numeric vector

sigma

the standard deviation.If you know the sd value, please set it to sigma. Default is -1, which means that you didn't know the sd value.

alpha

significance level

Value

a data frame of basic statistics information

Author(s)

Weibin Huang<654751191@qq.com>

Examples

1
2
3
set.seed(2019);x <- sample(1:1000,500,replace = T)
confint_vector(x)
confint_vector(x,sigma = 2) # Not be used as usual.It's because we always don't know the value of standard deviation.

huangwb8/lucky documentation built on Oct. 16, 2019, 9:01 a.m.