makeQA_HypothesisTest: Generate hypothesis test question

Description Usage Arguments Value Examples

Description

Generate hypothesis test question

Usage

1
2
makeQA_HypothesisTest(type = NULL, level = 0.05, Xbar = NULL,
  sigma = NULL, n = NULL, mu_0 = NULL)

Arguments

type

Type of test 0: Left tail, 1: Right tail, 2: Two tailed

level

Level of test. Must be great than 0 and less than 0.5

Xbar

Sample mean

sigma

Sample standard deviation

n

Sample size

mu_0

What mu equals under null hypothesis

Value

a vector with first element as question, second element as correct answer, and other elements as other answer choices.

Examples

1
2
3
4
5
6
7
8
9
makeQA_HypothesisTest(type = 0)
"H_0: mu = 4.4; H_a = mu < 4.4.  You take 43 samples and find that the sample mean is 4.312.  The sample standard deviation is 1.9. Do you reject the null hypothesis at the 0.05 level?"
"yes"
"no"

makeQA_HypothesisTest(type = 1)
"H_0: mu = 7; H_a = mu > 7.  You take 65 samples and find that the sample mean is 7.109.  The sample standard deviation is 4.2. Do you reject the null hypothesis at the 0.05 level?"
"no"
"yes"

kristynpantoja/statexams documentation built on June 3, 2019, 5:25 a.m.