Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!