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

work with us population data :(in R software) Take a simple random sample of 20

ID: 3272577 • Letter: W

Question

work with us population data :(in R software)

Take a simple random sample of 20 states from the 50 states. Explain your sampling procedure.

Let the variable of interest be the total 18-24 population in the states. Using the selected sample, estimate the total 18-24 population in the US and find a 95% CI for your estimate.

Discuss the potential problems associated with your sampling plan (simple random sampling vs. some other design)

Is your estimate reasonable? Why

I have a data file in R but how can I answer these questions.

Thank you

Explanation / Answer

There is no data in the question , however the generic R statements to answer the questions are

## sample

set.seed(1)
sample(data, 20, replace=FALSE) ## samples 20 states out of the data without replacement , please note that this is a complete random sampling

## Confidence limit

Upper <- mean(data$variable) + 1.96*sd(data$variable)/sqrt(nrow(data))

Lower <- mean(data$variable) - 1.96*sd(data$variable)/sqrt(nrow(data))