UBC-STAT / stat545.stat.ubc.ca

Repository that produces the STAT 545 @ UBC website
https://stat545.stat.ubc.ca
Creative Commons Attribution 4.0 International
42 stars 83 forks source link

add lecture-worksheet-1 #30

Closed iciarfernandez closed 4 years ago

iciarfernandez commented 4 years ago

Here is a draft of the first worksheet! I have yet to add the section that will correspond to Class 3: R Markdown & Reproducibility; so far I have only designed the first part corresponding to Class 1. I would like to acknowledge that although part of it is completely created from scratch, I have also taken some sections from the current guidebook & adapted them, as well as used the swirl() R Programming and the "A very (short) introduction to R" document by Claudia Brauer as inspiration (not copy-paste but did make some similar exercises adapting them to the workflow of the worksheet!). I hope this is okay, and I would also like to note it somewhere in the worksheet (maybe a "References" section at the end?) because I think it's important to credit others' work - but I wanted to consult you on how is best to do this. I look forward to hearing your thoughts!

Going forward, I think that it may be easier if I learn how to knit the files to Jupyter notebooks and implement nbGrader, I tried to make notes throughout for Team Sonja where the nbGrader sections would be, so hopefully that's enough but please feel free to reach out if anything needs clarification (and same goes for anyone working in Team Sonja). Thank you!

vincenzocoia commented 4 years ago

This is looking great.

Some notes about setting up the worksheet to be structured for the autograder.

Here is an example of a question from STAT 201, followed by a few comments:

**Question 1.0**

Which of the following is an example of an inferential question:

A. How many candy stores are there in Kitsilano?   

B. Does the average sleep duration of individuals who consume melatonin 30 minutes before bed differ from those who do not?     

C. If I study 28 hours, what score will I obtain on this exam?     

D. Does owning a houseplant lead to the adoption of a puppy?     

_Assign your answer to an object called `answer1.0`. Your answer should be a single character surrounded by quotes._

```{r} # answer1.0 <- ... ### BEGIN SOLUTION answer1.0 <- "B" ### END SOLUTION ```

```{r} test_1.0() ```


Some additional comments:

I think it's important to credit others' work - but I wanted to consult you on how is best to do this.

Probably the best way to do this is to add a section near the top of the worksheet, entitled something like "Attribution", and essentially just put a description similar to what you describe in this pull request.

Going forward, I think that it may be easier if I learn how to knit the files to Jupyter notebooks and implement nbGrader

I don't think you need to do all of it. I would suggest seeing whether Team Sonja can help with writing the tests. We can provide guidance for what they should be testing, like "Object should equal 9", or "Object should contain a geom_point() layer, and have an aesthetic mapping of gdpPerCap to x".

iciarfernandez commented 4 years ago

Awesome! Okay, I think I understand the concept of nbgrader much better now. Tomorrow I will adjust the content so far so that it works with nbgrader, and clarify instructions for students at the top of the worksheet + add attributions as you suggested, that's a great idea. I'm looking forward to see the finished product! Should we merge the pull request for now?