Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

can anyone help with this in R ? Part II: Determining sample size In this part t

ID: 3350181 • Letter: C

Question

can anyone help with this in R ?

Part II: Determining sample size In this part there is no dataset to load into R and analyze. You should just use R as a calculator when you apply the relevant formulas (which are towards the end of the lecture notes for module 1) To estimate the proportion of danish companies with less than 10 employees determine the necessary sample size for the estimate to be accurate to within 0.06 with probability 0.90. Based on results from a previous study in 2013, we expect the proportion to be about 0.70

Explanation / Answer

The R code is pasted below.

# POPULATION PROPORTION
p = 0.70

# MARGIN OF ERROR
E = 0.06

# CONFIDENCE LEVEL = 90%
# LEVEL OF SIGNIFICANCE, ALPHA = 0.10
alpha = 0.1

# CRITICAL VALUE
crit = qnorm(alpha/2,lower.tail=F)
crit

num = (crit^2) * p * (1 - p)
den = E^2
# REQUIRED SAMPLE SIZE
n = num/den
n

# SAMPLE SIZE SHOULD BE AROUND 158

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote