}
test_vector = c(1,2,3,4,5)
-zeroToOneRescaler(test_vector)
# Should print c(0, 0.25, 0.5, 0.75, 1.00)
+zeroToOneRescaler(test_vector)
```
```{r R_debug1-solution}
}
test_vector = c(1,2,3,4,5)
-zeroToOneRescaler(test_vector)
# Should print c(0, 0.25, 0.5, 0.75, 1.00)
+zeroToOneRescaler(test_vector)
```
```{r R_debug1-response}
answer("if an effect is causal or not.")
),
question("A distribution that is right-skewed has a long tail to the:",
- answer("right", correct = TRUE),
- answer("left")
+ answer("right.", correct = TRUE),
+ answer("left.")
),
question("A normal distribution can be characterized with only this many parameters:",
- answer("1"),
- answer("2", correct = TRUE),
- answer("3")
+ answer("1."),
+ answer("2.", correct = TRUE),
+ answer("3.")
),
question("When we calculate standard error, we calculate",
- answer("using a different formula for every type of variable."),
+ answer("it using a different formula for every type of variable."),
answer("the sample standard error, which is an estimate of the population standard error.", correct = TRUE),
answer("whether or not our result is causal.")
),
question("P values tell us about",
answer("the world in which our null hypothesis is true.", correct = TRUE),
answer("the world in which our null hypothesis is false."),
- answer("the world in which our data describe a causal effect")
+ answer("the world in which our data describe a causal effect.")
),
question("P values are",
answer("a conditional probability.", correct = TRUE),
```{r StatsConcepts_sampling}
quiz(
- question("A political scientist is interested in the effect of government type on economic development.
-She wants to use a sample of 30 countries evenly represented among the Americas, Europe,
-Asia, and Africa to conduct her analysis. What type of study should she use to ensure that
-countries are selected from each region of the world? Assume a limitied research budget.",
+ question("A political scientist is interested in the effect of teaching style type on standardized test performance
+She wants to use a sample of 30 classes evenly represented among the Communication, Computer Science, and Business to conduct her analysis. What type of study should she use to ensure that
+classes are selected from each region of the world? Assume a limited research budget.",
answer("Observational - simple random sample"),
answer("Observational - cluster"),
answer("Observational - stratifed", correct=TRUE),
## Answer Report
Finally, let's generate a report that summarizes your answers to this evaluation.
-Answers are written to a file that looks like this: `question_submission-{CURRENT TIME}.csv`. They're also saved in R Studio's global environment as a variable called `df`. Run the below code chunk to see what `df` looks like.
+Answers are written to a file that looks like this: `question_submission-{CURRENT TIME}.csv`.
+
+Take note of this csv file: this is what you will submit to Canvas.
+
+They're also saved in R Studio's global environment as a variable called `df`. Run the below code chunk to see what `df` looks like.
```{r report1, exercise=TRUE}
df