typo fixes + instructions for submitting csv files
This commit is contained in:
@@ -134,8 +134,8 @@ zeroToOneRescaler <- function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test_vector = c(1,2,3,4,5)
|
test_vector = c(1,2,3,4,5)
|
||||||
zeroToOneRescaler(test_vector)
|
|
||||||
# Should print c(0, 0.25, 0.5, 0.75, 1.00)
|
# Should print c(0, 0.25, 0.5, 0.75, 1.00)
|
||||||
|
zeroToOneRescaler(test_vector)
|
||||||
```
|
```
|
||||||
|
|
||||||
```{r R_debug1-solution}
|
```{r R_debug1-solution}
|
||||||
@@ -146,8 +146,8 @@ zeroToOneRescaler <- function(x) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test_vector = c(1,2,3,4,5)
|
test_vector = c(1,2,3,4,5)
|
||||||
zeroToOneRescaler(test_vector)
|
|
||||||
# Should print c(0, 0.25, 0.5, 0.75, 1.00)
|
# Should print c(0, 0.25, 0.5, 0.75, 1.00)
|
||||||
|
zeroToOneRescaler(test_vector)
|
||||||
```
|
```
|
||||||
|
|
||||||
```{r R_debug1-response}
|
```{r R_debug1-response}
|
||||||
@@ -283,16 +283,16 @@ quiz(
|
|||||||
answer("if an effect is causal or not.")
|
answer("if an effect is causal or not.")
|
||||||
),
|
),
|
||||||
question("A distribution that is right-skewed has a long tail to the:",
|
question("A distribution that is right-skewed has a long tail to the:",
|
||||||
answer("right", correct = TRUE),
|
answer("right.", correct = TRUE),
|
||||||
answer("left")
|
answer("left.")
|
||||||
),
|
),
|
||||||
question("A normal distribution can be characterized with only this many parameters:",
|
question("A normal distribution can be characterized with only this many parameters:",
|
||||||
answer("1"),
|
answer("1."),
|
||||||
answer("2", correct = TRUE),
|
answer("2.", correct = TRUE),
|
||||||
answer("3")
|
answer("3.")
|
||||||
),
|
),
|
||||||
question("When we calculate standard error, we calculate",
|
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("the sample standard error, which is an estimate of the population standard error.", correct = TRUE),
|
||||||
answer("whether or not our result is causal.")
|
answer("whether or not our result is causal.")
|
||||||
),
|
),
|
||||||
@@ -304,7 +304,7 @@ quiz(
|
|||||||
question("P values tell us about",
|
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 true.", correct = TRUE),
|
||||||
answer("the world in which our null hypothesis is false."),
|
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",
|
question("P values are",
|
||||||
answer("a conditional probability.", correct = TRUE),
|
answer("a conditional probability.", correct = TRUE),
|
||||||
@@ -325,10 +325,9 @@ quiz(
|
|||||||
|
|
||||||
```{r StatsConcepts_sampling}
|
```{r StatsConcepts_sampling}
|
||||||
quiz(
|
quiz(
|
||||||
question("A political scientist is interested in the effect of government type on economic development.
|
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 countries evenly represented among the Americas, Europe,
|
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
|
||||||
Asia, and Africa 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.",
|
||||||
countries are selected from each region of the world? Assume a limitied research budget.",
|
|
||||||
answer("Observational - simple random sample"),
|
answer("Observational - simple random sample"),
|
||||||
answer("Observational - cluster"),
|
answer("Observational - cluster"),
|
||||||
answer("Observational - stratifed", correct=TRUE),
|
answer("Observational - stratifed", correct=TRUE),
|
||||||
@@ -537,7 +536,11 @@ $Q_1 - 1.5 \times IQR, \quad Q_3 + 1.5 \times IQR$
|
|||||||
## Answer Report
|
## Answer Report
|
||||||
Finally, let's generate a report that summarizes your answers to this evaluation.
|
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}
|
```{r report1, exercise=TRUE}
|
||||||
df
|
df
|
||||||
|
|||||||
Reference in New Issue
Block a user