Introductory Statistics

 

IS: R Assignment 6

[<code class="R">R</code> Assignments]
R Assignment #6

 

General Purpose

General Purpose of these Assignments: The purpose of these R Assignments is to give you some pointed, direct practice in using R. As such, these are designed to be quick and to the point (less than 10 minutes each). They are also designed to give you a place to return if you forget how to perform some analysis in the future.

Please supply your results in the form below. Clicking on “Click to Check Your Answers” will allow you to see which as correct and which are not. When all are correct (and you can try as many time as you wish), you will be allowed to send your answers to me for credit by clicking on “Click to Email Your Results.” You only receive credit when this is submitted (with all answers correct).

This assignment is due at the start of the class period on

Friday, January 19, 2024.

With that being said, if this R Assignment is available, which is could be until approximately 11:59 pm (CST), then you are able to work on it.

As expected, these are graded according to the syllabus (all or nothing). Please review the appropriate section in the syllabus for more information. Also, if this is not submitted before it is due, then it counts as a zero.


Specific Purpose: Specifically, for this particular assignment, you are proving to me that you can calculate some measures of center and some measures of position.


Slidedeck Support: The following slidedeck may be helpful for you in completing this R Assignment:


The Problems

For this particular assignment, be calculating measures of center and measures of position. Remember that the purpose of these is to just ensure you can do the calculations using the R Statistical Environment. [As usual, round to at least four decimal places.]

First, run the following code. Then, answer the questions that follow. These lines of code load a particular data set (the crime data set) and attaches it. In other words, they allow you easy access to a common data set.

source("http://rfs.kvasaheim.com/stat200.R") dt = read.csv("http://rfs.kvasaheim.com/data/crime.csv") attach(dt)
  1. What is the mean violent crime rate in 1990 (vcrime90)?
  2. What is the 90th percentile of the number of citizen initiatives handled in the 1990s (inituse)?
  3. What is the 10th percentile of the unemployment rate in 2000 (unemp2000)?

Finally, to receive credit for this assignment, please provide your full Knox College email address:

then click on the button here.

The Answers

Since this is past due, I can now give you the code and the answer:

Since it is now after the time this is due, I can now give you the code and the answers:

mean(vcrime90)
quantile(inituse, 0.90)
quantile(unemp2000, 0.10)

The answers are

571.8137
18
2.7
This page was last modified on 2 January 2024.
All rights reserved by Ole J. Forsberg, PhD, ©2008–2024. No reproduction of any of this material is allowed without explicit written permission of the copyright holder.