findroot: find the Z score

Description Usage Arguments Details Value Note Author(s) See Also Examples

Description

find the Z score of normal distribution, standard normal distribution, chi-square or t-distribution

Usage

1
findroot(alpha = 0.05, side = "both", method = "n", n, mu = 0, sigma = 1)

Arguments

alpha

the significance level of the confidence level

side

whether the confidence interval is one or two sides

method

the distribution of the samples follow

n

the amount of the samples

mu

the average of the samples

sigma

the standard deviation of the population

Details

if necessary,please input mu and sigma when the samples don't follow the standard normal distribution

Value

the value return 'z score'(A measure of the distance in standard deviations of a sample from the mean.)

Note

this function can only be used in standard normal dirtribution,standard normal distribution, chi-square and t-distribution. If the samples don't have the standard normal dirtribution, please input mu and sigma.

Author(s)

Chengfeng Liu, Huiqing Liu, Yingyan Liang and Ruibin Feng Maintainer: Chengfeng Liu (478996606@qq.com)

See Also

hypothesis

Examples

1
2
3
##find the z score
findroot(alpha = 0.05, side = "both", method = "n", n=30, mu = 0, sigma = 1)
# 1.959961

hypothesestest documentation built on May 2, 2019, 8:33 a.m.