# Stat380 rstudio lab 8 | Stat 380 | Southern Illinois University Edwardsville

Write your R code inside the code chunks after each question.

* To generate the word document output, click the button `Knit` and wait for the word document to appear.

* RStudio will prompt you (only once) to install the `knitr` package.

* Submit your completed laboratory exercise using Blackboard’s Turnitin feature. Your Turnitin upload link is found on your Blackboard Course shell under the Laboratory folder.

***

For this exercise, you will need to use the package `mosaic` to find numerical and graphical summaries.

“`{r warning=FALSE, message=FALSE}

# install package if necessary

if (!require(mosaic)) install.packages(`mosaic`)

# load the package in R

library(mosaic) # load the package mosaic to use its functions

“`

1. The study “Digital Footprints” ([Pew Internet and American Life Project](“Digital Footprints” (Pew Internet and American Life Project)) reported that 47% of Internet users have searched for information about themselves online. The 47% figure was based on a random sample of Internet users. Suppose that the sample size was `n = 400`.

i) Use this information to estimate the true proportion of Internet users who searched information about themselves using a default 95% confidence interval.

ii) Repeat (i) but instead use a 98% Confidence Level. Use function `prop.test()`.

iii) What is the main difference between the intervals computed in (i) and (ii)? What do you think is the role of the confidence level in determining the precision of the confidence interval estimate?

### Code chunk

“`{r}

# start your code

# last R code line

“`

2. The article [“CSI Effect Has Juries Wanting More Evidence” (USA Today, 2004)](https://usatoday30.usatoday.com/news/nation/2004-08-05-csi-effect_x.htm) examines how the popularity of crime-scene investigation television shows in influencing jurors’ expectation of what evidence should be produced at a trial. In a survey of 500 potential jurors, one study found that 350 were regular watchers of at least one crime-scene forensics television series.

i) Assuming that it is reasonable to regard this sample of 500 potential jurors as representative of potential jurors in the US, use the given information to construct and interpret a 95% confidence interval for the proportion of all potential jurors who regularly watch at least one crime-scene investigation series.

ii) Using the same sample proportion as part (i), construct a 95% confidence interval for same proportion but instead use a sample size of 50.

iii) What is the main difference between the confidence intervals computed in part (i) and (ii)? What do you think is the role of the sample size in determining the precision the confidence interval estimate?

Calculate your paper price
Pages (550 words)
Approximate price: -

Why Work with Us

Top Quality and Well-Researched Papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional and Experienced Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

## Calculate the price of your order

Total price:
\$0.00

How it works?

Follow these simple steps to get your paper done

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

## Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.