Download the assignment file, complete the three questions, and submit your .qmd and rendered .html to Canvas.
packages chunk first, then knit.
Use the download link below. Save to your PAF516/Lab1/ folder. Rename to Lab1_Assignment_YourLastName.qmd before editing.
Press Cmd+Shift+K (Mac) or Ctrl+Shift+K (PC). Steps 1–8 render automatically. Review the output — these are the results you will interpret for Q1.
Q1: Interpret the pre-filled results (text). Q2: Add a 6th variable by filling in the scaffold chunks at the end of the file (code). Q3: Evaluate your modification (text). Re-knit after completing Q2.
Submit both Lab1_Assignment_YourLastName.qmd and Lab1_Assignment_YourLastName.html.
After running Steps 1–8, answer the following in your own words:
Replace the placeholder text in the Q1 section of the assignment file. A few sentences per bullet is sufficient.
Add percent of households receiving SNAP benefits as a 6th indicator variable:
B19058_002 (households receiving SNAP)B19058_001 (total households)Three scaffold chunks are provided — q2-pull, q2-index, and q2-map. Add code to each to:
After completing Q2, compare your results and answer:
| Action | Mac | PC |
|---|---|---|
| Run current chunk | Cmd+Return | Ctrl+Enter |
| Knit / Render | Cmd+Shift+K | Ctrl+Shift+K |
Right-click → Save Link As. Save to your PAF516/Lab1/ folder.
Lab1_Assignment.qmd — your edited source fileLab1_Assignment.html — the rendered output