Question

Use R to do the procedures listed below. Load your data set on the R compiler...

Use R to do the procedures listed below.

Load your data set on the R compiler as vector x

  1. Determine the mean, variance, and standard deviation of x.
  2. Plot the values of x on the vertical axis against the index values (i.e. the observation number: 1, 2, ... n) on the horizontal axis.
  3. Add to your plot a horizontal line representing the mean of x colored red.
  4. Annotate your R script to document each procedure and to interpret your results (e.g. "# This calculates the mean of x")

save the full R code

Data set: %IncChg 27.2 25.2 25.7 80.9 26.9 20.2 25.4 26.9 26.4 26.3 27.5 38.2 20.9 31.3 23.5 26 35.8 30.9 15.5 24.8 29.4 11.7 32.6 32.2 27.6 27.5 28.7 28 15.6 20 21.8 18.4 27.3 13.4 14.7 21.6 26.8 20.9 32.7 29.3 21.4 29 7.2 25.7 25.5 39.8 26.6 24.2 33.5 16 29.4 26.8 32 24.7 24.2 29.8 25.8 18.2 26 26.2 21.7 27 23.7 28 11.2 26.2 21.6 23.7 28.3 34.1 40.8 16 50.5 54.1 3.3 23.5 10.1 14.8

0 0
Add a comment Improve this question Transcribed image text
Answer #1

x=c(27.2,25.2,25.7,80.9,26.9,20.2,25.4,26.9,26.4,26.3,27.5,38.2,20.9,31.3,23.5,26,35.8,30.9,15.5,24.8,29.4,11.7,32.6,32.2,27.6,27.5,28.7,28,15.6,20,21.8,18.4,27.3,13.4,14.7,21.6,26.8,20.9,32.7,29.3,21.4,29,7.2,25.7,25.5,39.8,26.6,24.2,33.5,16,29.4,26.8,32,24.7,24.2,29.8,25.8,18.2,26,26.2,21.7,27,23.7,28,11.2,26.2,21.6,23.7,28.3,34.1,40.8,16,50.5,54.1,3.3,23.5,10.1,14.8)

mean(x)#mean

sd(x)#standard deviation

var(x)#variance
plot(1:length(x),x, xlab="index", ylab="x")
abline(h=mean(x), col="red")

Add a comment
Know the answer?
Add Answer to:
Use R to do the procedures listed below. Load your data set on the R compiler...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • The following data was reported on total Fe for four types of iron formation (1 =...

    The following data was reported on total Fe for four types of iron formation (1 = carbonate, 2 = silicate, 3 = magnetite, 4 = hematite). 1: 20.8 28.1 27.8 27.0 28.2 25.2 25.3 27.1 20.5 31.2 2: 26.9 24.0 26.2 20.2 23.5 34.0 17.1 26.8 23.7 24.6 3: 30.4 34.0 27.5 29.4 28.1 26.2 29.9 29.5 30.0 36.4 4: 36.4 44.2 34.1 30.3 31.8 33.1 34.1 32.9 36.3 25.8 Carry out an analysis of variance F test at significance...

  • A researcher intended to investigate the potential difference in BMI between men and women. He also tried to evaluate th...

    A researcher intended to investigate the potential difference in BMI between men and women. He also tried to evaluate the effectiveness of a new physical exercise program in reducing BMI. Table 1 summarized the BMI data. At the beginning of the study (Day 0), 64 men and 49 women were included in the study and their BMI values were measured (defined as BMI_M0 and BMI_F0, respectively). After joining the new physical exercise program for 180 days, the participants’ BMI values...

  • You are required to write a concise report with all your answers in doc or pdf...

    You are required to write a concise report with all your answers in doc or pdf file. You should include tables or figures from Excel in your report if needed. All data sets were simulated using a statistical software. You can also find Excel temples in the attachment with my announcement, which helps you a lot! Part A. A researcher intended to investigate the potential difference in BMI between men and women. He also tried to evaluate the effectiveness of...

  • The following data was reported on total Fe for four types of iron formation (1 =...

    The following data was reported on total Fe for four types of iron formation (1 = carbonate, 2 = silicate, 3 = magnetite, 4 = hematite). : 1: 21.0 28.1 27.8 27.0 28.0 25.2 25.3 27.1 20.5 31.2 2: 26.9 24.0 26.2 20.2 23.7 34.0 17.1 26.8 23.7 25.2 3: 29.8 34.0 27.5 29.4 28.5 26.2 29.9 29.5 30.0 36.4 4: 37.2 44.2 34.1 30.3 31.8 33.1 34.1 32.9 36.3 25.7 1.Carry out an analysis of variance F test at...

  • Suppose the following data show the percentage of 17- to 24-year-olds who are attending college in several metropolitan...

    Suppose the following data show the percentage of 17- to 24-year-olds who are attending college in several metropolitan statistical areas in four geographic regions of the United States. Northeast Midwest South West 29.2 36.8 59.4 16.5 40.5 33.9 37.9 32.9 32.1 22.8 27.7 23.0 46.2 43.2 40.9 12.8 32.9 32.8 34.7 44.2 15.4 59.1 18.9 26.2 36.4 30.9 29.8 56.9 36.3 63.8 68.0 13.8 36.9 26.8 32.0 37.7 58.2 56.3 30.5 28.0 60.6 79.1 39.8 17.6 43.0 29.4 33.1 73.9...

  • sunspot.year is a built-in R time series dataset which gives the mean yearly numbers of sunspots...

    sunspot.year is a built-in R time series dataset which gives the mean yearly numbers of sunspots from 1700 to 1988 rounded to one digit. This data is maintained up until the current date at WDC-SILSO, Royal Observatory of Belgium. We are interested in some descriptive statistics related to the sunspot.year time series. We can access this data directly and convert the time series into a vector by using the assignment x <- as.vector(sunspot.year). (In R use ?sunspot.year for info on...

  • 2. Using the data set of the Health Exam Results, conduct the following analysis between the variables of weight (WT) and Body Mass Index (BMI). Number the data set from 1 to 40, and select the...

    2. Using the data set of the Health Exam Results, conduct the following analysis between the variables of weight (WT) and Body Mass Index (BMI). Number the data set from 1 to 40, and select the following individuals: . Set 1 (Malo): 1, 5, 10, 13, 15, 18, 19, 24, 29, 31, 32, 33 .Set 2 (Fomalo): 4, 9, 15, 16, 17, 22, 23, 29, 33, 37, 38, 40 Draw a scatter diagram of the sample of 12 data set...

  • Please Show all work . Use attached Data and graph to answer questions Titration of Acetic...

    Please Show all work . Use attached Data and graph to answer questions Titration of Acetic Acid: 0. IM 1) Check to make sure that the volume on If it does not read 0.00 mL, adjust it to do so before you proceed any further. your sodium hydroxide buret reads 0.00 mL 2) Use the buret that is located near the acetic acid container to dispense 25.00 mL of acetic acid solution into a clean dry 100 mL beaker. Record...

  • We are interested in the relationship between the compensation of Chief Executive Officers (CEO) ...

    We are interested in the relationship between the compensation of Chief Executive Officers (CEO) of firms and the return on equity of their respective firm, using the dataset below. The variable salary shows the annual salary of a CEO in thousands of dollars, so that y = 150 indicates a salary of $150,000. Similarly, the variable ROE represents the average return on equity (ROE)for the CEO’s firm for the previous three years. A ROE of 20 indicates an average return...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT