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/Lab4/ folder. Rename to Lab4_Assignment_YourLastName.qmd before editing.
Press Cmd+Shift+K (Mac) or Ctrl+Shift+K (PC). Steps 1–7 render automatically. Review the Moran’s I output (Step 4) and the LISA cluster map (Step 7) — you will interpret these for Q1.
Q1: Interpret Global Moran’s I and identify hot spots from the LISA map (text). Q2: Re-run the full LISA analysis on poverty rate alone using the scaffold chunks (code). Q3: Compare poverty hot spots vs. composite index hot spots (text). Re-knit after completing Q2.
Submit both Lab4_Assignment_YourLastName.qmd and Lab4_Assignment_YourLastName.html.
After knitting, review the Step 4 output and Step 7 maps, then answer:
Rerun the entire LISA analysis on poverty rate alone instead of the composite economic hardship index:
q2-poverty-morans, q2-poverty-lisa, q2-poverty-lisa-map, and q2-comparisonlw) are already built in Step 3 — you only need to rerun moran.test(), localmoran(), and the classification/mapping codepoverty_rate for hardship_indexCompare the results from Q2 with the composite index results from Steps 4–7:
| 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/Lab4/ folder.
Lab4_Assignment_YourLastName.qmd — your edited source fileLab4_Assignment_YourLastName.html — the rendered output