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

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

* Write your answer comments after the `#` sign.

* 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?

Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency