Question: Part 1: a. doo a new r script and load the mtcars dataset in RStudio. State two variables that could best be used for a
Part 1:
a. doo a new r script and load the mtcars dataset in RStudio. State two variables that could best be used for a chi square test of independence. You can simply write "done" in the input section once you have added the code for part one and then answer the second question below.
b. Run a chi square on those variables and write two a p a paragraphs. The first paragraph is about the hypotheses (including a null and alternate) and the second about the findings and their implications. Be sure to include a p a formatted values within your writing.
Part 2:
a. Load the swiss data set in RStudio. (Hint: as.data.frame). Then name two variables that could best be used for a correlation.
b. Run a correlation on those variables and write two a p a paragraphs. The first paragraph is about the hypotheses (including a null and alternate) and the second about the findings and their implications. Be sure to include a p a formatted values within your writing.
Part 3:
a. Load the UKgas data set in RStudio. (Hint: as.data.frame). make a sentence about what this dataset includes. Give an example of a question you might answer with this the UKgas data.
b. Formulate a t test hypothesis about these data. This means that you need to look at the data and come up with a prediction about what you might find. How is it possible to compare aspects of this data?
c. What do you need to add in order to run a t test? (Hint: you may need to create something... if you do, you will get a great score, else you may not...) Describe, in words, what you would add.
d. Add, if anything is needed from t-test question 4, and run an independent samples t test on the data. This will show up in your code but you can also add the line of code here.
e. Write two a p a paragraphs. The first paragraph is about the hypotheses (including a null and alternate) and the second about the findings and their implications. Be sure to include a p a formatted values within your writing.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
