Learn R Programming

hypothesestest (version 1.0)

findroot: find the Z score

Description

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

Usage

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

Value

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

Details

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

See Also

hypothesis

Examples

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

Run the code above in your browser using DataLab