Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Data Analysis Assignment 1 Based upon the statistical methods and tests covered in our textbooks, students will sample from a data set using R Studio/R

Data Analysis Assignment 1

Based upon the statistical methods and tests covered in our textbooks, students will sample from a data set using R Studio/R code to execute several sampling techniques and will analyze their results in a submitted Word file that includes a copy of their R code.

Instructions: -Submit one Word filedocument

Data Sets- available on home page, click the data frames link.

Download this R Script for running the code: PADM 5850 Data Analysis 1-1.RDownload PADM 5850 Data Analysis 1-1.R

  1. Download the dataframe from the above link titled "statesforsampling.Rdata." Either place a copy in your folder (working directory) or upload the data into RStudio Cloud.
  2. Download this R Script your instructor created for you for to do this assignment.
  3. If you are working in RStudio Cloud, upload the script. Laptop users place a copy of the R Script into your working directory folder and then open it up in RStudio.
  4. In the code, it instructs you to do simple random sampling first. Run the random sampling code "without replacement" three separate times (same code, hit run three separate times). The state numbers for each sample will be in the bottom left Console. In your Word file, type up the three state names and numbers you selected for each of the three runs. Repeat this again but now run the code in line 17 four times "with replacement." Report this in the Word file, state numbers and name for each of the four samples.
  5. Install the package sampler so we can do stratified random sampling.
  6. Use the library command to allow us to use the package.
  7. Separately, run the "ssamp" commands on lines 24-26. Cut and paste those samples into your Word File.

Submissions

Data analysis assignments & the comprehensive final analysis should be .doc or .docx files. Statistical output needs to be in the Word file

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Probability With Applications and R

Authors: Robert P. Dobrow

1st edition

1118241257, 1118241258, 978-1118241257

More Books

Students also viewed these Mathematics questions

Question

What applied experiences do you have? (For Applied Programs Only)

Answered: 1 week ago