Question: Hi there, I've neber used R script before and need help. Instructions for R script are: For each question you will fill in some numerical

Hi there, I've neber used R script before and need help.

Instructions for R script are: "For each question you will fill in some numerical results gotten through R, plus at the question end you will copy and paste your R script into an answer box. Do not run the script and then copy and paste the results. This script, when run, should give the result you placed into the individual answer boxes. I will run the script.

Thank you!!

Your pulse rate can be a measure of your health. The following are the pulse rates of 15 teenagers: 76, 88, 78, 71, 68, 86, 70, 90, 74, 70, 69, 68, 88, 96, 68. We represent these as a vector x in R by making the following assignmemt: x <- c(76, 88, 78, 71, 68, 86, 70, 90, 74, 70, 69, 68, 88, 96, 68) Define the vector y by the assignment y <- cumsum(x) Define the variable w using the assignment w <- y+3 Define z with the assignment z <- c(x,y,w) x, y, w and z are vectors. Answer the following using R code. a) Calculate the minimum value of z. b) Calculate the sum of the squares of the elements in z. c) Calculate the sample mean of z. d) Calculate the sample variance of z. e) Calculate the sample standard deviation of z f) What is the 12th element of y? (value of y[12]) g) Calculate the sample variance of x. h) Calculate the sample variance of 2*x i) What is the length(# of elements) in 2*x j) How many unique(different) values are in z? k) In the following paste your R script for this problem

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!