sig.z.test: Two tailed Hypothesis test when SD is known

View source: R/sig.z.test.R

sig.z.testR Documentation

Two tailed Hypothesis test when SD is known

Description

The test is two tailed for when the SD in population is known. # p value for two tails. default Z crit is +-1.96.

Usage

sig.z.test(miu, sd, N, x, alpha = 5)

Arguments

miu

Avg/mean in population.

sd

SD in the population.

N

Sample size.

x

Mean found in sample.

alpha

Alpha decided. default 5.

Value

H0 rejected or accepted.

Z the Z value.

Z crit Criteria according to the alpha provided.

alpha in both sides (takes the alpha input and divides by 2).

Examples

sig.z.test(620,80,25,588)
# In this example, 620 is the known mean with sd of 80. A 25 size sample produced a mean of 588. Is it significant?
sig.z.test(miu=620,sd=80,N=25,x=588,alpha=1)
# Now we changed the alpha from 0.05 to 0.01.

bgupsych/bgupsych documentation built on Nov. 1, 2023, 9:41 a.m.