Skip to content

Commit ff563ed

Browse files
committed
Merge branch 'dev'
2 parents 237f2ac + 803f72c commit ff563ed

4 files changed

Lines changed: 154 additions & 3 deletions

File tree

_quarto.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ website:
7272
text: "Week 13 - Moderation"
7373
- href: weeks/week-14.qmd
7474
text: "Week 14 - Model Building & Mediation"
75+
- href: weeks/week-15.qmd
76+
text: "Week 15 - Wrapping Up"
7577
- section: "Labs"
7678
contents:
7779
- href: labs/lab-1_data-workflow.qmd

index.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Readings on the schedule will need to be completed prior to the course they are
7272
+--------------------------+----------+------------------------------------------------+---------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+--------------------------------------------------------------------------+
7373
| [14](weeks/week-14.html) | 11-24 | Model Building + Mediation | [Chapter 15.8 - 15.10 - LSR](https://learningstatisticswithr.com/book/){target="_blank"} | [💻 Model Building](/slides/lec-14.html) | Continue Working on Final! |
7474
+--------------------------+----------+------------------------------------------------+---------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+--------------------------------------------------------------------------+
75-
| 15 | 12-01 | Making R Work for You | [Chapter 17 & 18 - ST](https://statsthinking21.github.io/statsthinking21-core-site/){target="_blank"} | | |
75+
| [15](weeks/week-14.html) | 12-01 | Making R Work for You | [Chapter 17 & 18 - ST](https://statsthinking21.github.io/statsthinking21-core-site/){target="_blank"} | | Finish your Final Project |
7676
+--------------------------+----------+------------------------------------------------+---------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+--------------------------------------------------------------------------+
7777
| 16 | 12-08 | Wrapping Up + Presentations | | | |
7878
+--------------------------+----------+------------------------------------------------+---------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+--------------------------------------------------------------------------+

labs/final-proj.qmd

Lines changed: 109 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,12 @@ need to create a random subset that has N = 400 for your analyses
122122
## Part 3 (Due 12/8 - In Class)​
123123

124124
The final part of the project consists of a brief presentation to the
125-
class and a written report of your data analysis plan and results.
125+
class and a written report of your data analysis plan and results. This
126+
should be completely reproducible and be a [zipped
127+
folder](https://letmegooglethat.com/?q=how+to+zip+a+folder){target="_blank"}
128+
with all relevant materials.
126129

127-
### **Presentation**
130+
### **Presentation (5 mins & 1-2 mins of Q & A)**
128131

129132
Your presentation should be a brief overview of your project. It should
130133
be well-organized and engaging. This can take the form of a slideshow (5
@@ -142,6 +145,11 @@ message. Be sure to include the following:
142145
- **Discussion**: Interpret your results and discuss their
143146
implications.
144147

148+
Do not put walls of text on your slides. Your slides/materials should
149+
focus on the **visualizations** of your data (e.g., scatterplots with
150+
regression lines, interaction plots). You should narrate the methods and
151+
interpretation, rather than reading them off the slide.
152+
145153
### **Written Report**
146154

147155
::: callout-important
@@ -174,7 +182,106 @@ It should be well-structured and include the following sections:
174182
-**Conclusion**: Briefly summarize your main findings and their
175183
significance.
176184

185+
In the **Methods** or **Results** section, provide information on how
186+
you checked the assumptions for your regression (e.g., linearity,
187+
homoscedasticity, normality of residuals) and what the results of those
188+
checks were. If assumptions were violated, explain how you addressed
189+
them. (use `check_model()` from easystats)
190+
191+
**APA Style:** "APA Formatting" for results is strict.
192+
193+
- Do not copy-paste raw software output (like `summary()`) directly
194+
into the text.
195+
196+
- You must generate a clean Table (using packages like `sjPlot`,
197+
`apaTables`, `stargazer`, or `gt`) that reports b, SE, t, p, and R2.
198+
177199
Your final submission should be a single folder that is 100%
178200
reproducible, meaning that all of your data and code should be included
179201
and organized in a way that someone else could easily re-run your
180202
analyses.
203+
204+
### Helpful Tips
205+
206+
- **The "Run-All" Test:** Before zipping your folder, test your code
207+
on a fresh R session (close everything and re-open the project). If
208+
your code references a file path like
209+
`C:/Users/YourName/Downloads/Project`, it **will not work** on
210+
anyone else's computer.
211+
212+
- *Tip:* Use **relative paths** (e.g.,
213+
`import(here(("data", myDataFile.csv")`) and a project based
214+
workflow
215+
216+
- **Folder Structure:** Here is a suggested file structure:
217+
218+
- `/Data` (Raw data files)
219+
220+
- `/Scripts` (Analysis code, e.g., .R, .Rmd, .qmd)
221+
222+
- `/Output` (The final report in PDF or Word)
223+
224+
- **Code Quality:** Annotate your code. Comments should explain *why*
225+
a step is being taken (e.g.,
226+
`# Log transforming income to correct for skewness`) rather than
227+
just *what* the code is doing.
228+
229+
- **Page Count Clarification:** The 5-7 page requirement refers to
230+
**prose text**. Large figures, massive tables, and bibliography do
231+
not count toward the minimum.
232+
233+
## Rubric
234+
235+
**Total Points: 200**
236+
237+
#### Reproducibility & Code Quality (40 Points)
238+
239+
*Focus: Can the instructor download the folder and run the analysis
240+
without editing a single line of code?*
241+
242+
| | | | |
243+
|----|----|----|----|
244+
| **Criteria** | **Proficient (34–40 pts)** | **Competent (26–33 pts)** | **Needs Improvement (0–25 pts)** |
245+
| **Functionality & Organization** | Code runs immediately upon download without error on a fresh environment. Uses relative paths or `here()` correctly. | Code runs but requires minor troubleshooting (e.g., installing a missing package, fixing a hard-coded path like `C:/Users/...`). | Code breaks significantly, references local hard drives, or necessary files are missing from the folder. |
246+
247+
#### Data Preparation (20 Points)
248+
249+
*Focus: Did you prepare the data correctly before analyzing?*
250+
251+
| | | | |
252+
|----|----|----|----|
253+
| **Criteria** | **Proficient (18–20 pts)** | **Competent (14–17 pts)** | **Needs Improvement (0–13 pts)** |
254+
| **Cleaning & Sampling** | Random subset (N=400) created correctly (if applicable). Cleaning steps (handling NAs, recoding variables) are justified and executed efficiently. | Subset created but method is unclear/not reproducible. Minor errors in data cleaning (e.g., missed an obvious outlier). | No subsetting performed on large data. Data is "dirty" (e.g., typos in factor levels) affecting the analysis results. |
255+
256+
#### Statistical Rigor (50 Points)
257+
258+
*Focus: Does the logic follow and build a cohesive statistical
259+
argument?*
260+
261+
| | | | |
262+
|----|----|----|----|
263+
| **Criteria** | **Proficient (44–50 pts)** | **Competent (34–43 pts)** | **Needs Improvement (0–33 pts)** |
264+
| **Analysis Selection** | Chosen analyses (must include regression) are perfectly aligned with the research question and data type. | Analyses are generally appropriate, but a better model existed (e.g., used standard linear regression on a binary outcome). | Analysis does not address the hypothesis or is statistically invalid for the data type. |
265+
| **Assumption Checks** | All relevant assumptions (normality, linearity, homoscedasticity, etc.) are explicitly tested, reported, and handled if violated. | Assumptions are mentioned but not thoroughly tested, or violations are noted but ignored in the final model. | Assumptions are completely ignored or misunderstood. |
266+
| **Interpretation** | Interpretation of coefficients, p-values, confidence intervals, and effect sizes is accurate and nuanced. | Interpretation is generally correct but relies too heavily on "significance" (p<.05) rather than effect size or practical significance. | Fundamental misunderstanding of statistical output (e.g., interpreting p>.05 as "proof" of no effect). |
267+
268+
#### Presentation (30 Points)
269+
270+
*Focus: Can you synthesize the project in a concise way to an audience?*
271+
272+
| | | | |
273+
|----|----|----|----|
274+
| **Criteria** | **Proficient (26–30 pts)** | **Competent (20–25 pts)** | **Needs Improvement (0–19 pts)** |
275+
| **Communication** | Engaging, clear, and well-paced (within 7 min). Speaker demonstrates mastery of the material during Q&A. | Clear but relies heavily on reading notes. Slightly over or under the time limit. | Reading directly from slides (wall of text). Unable to answer basic questions about their own study. |
276+
| **Visual Aids** | Slides are visual-heavy and support the narrative. Graphs are clean, large, and legible. | Slides are text-heavy. Graphs are present but small, pixelated, or unformatted default outputs. | Slides are disorganized, confusing, or missing. |
277+
278+
#### Written Report Content (60 Points)
279+
280+
*Focus: Can you communicate the findings in a written format?*
281+
282+
| | | | |
283+
|----|----|----|----|
284+
| Criteria | Proficient (52–60 pts) | Competent (40–51 pts) | Needs Improvement (0–39 pts) |
285+
| **Introduction & Logic** | Clear narrative arc from problem identification to hypothesis. Citations (3+) are highly relevant and integrated well. | Hypothesis is stated, but the background justification is weak, disjointed, or citations are loosely related. | Hypothesis is missing or unclear. Introduction is disorganized or lacks citations. |
286+
| **Formatting (APA)** | Tables and Figures are perfect APA style. **No raw code output** (e.g., R console text) in the document. Prose is professional and academic. | Minor APA errors in tables/figures. Some raw software output included in the text. | Major formatting errors. Figures are unreadable, missing labels, or screen-capped from software. |
287+
| **Discussion** | Deeply contextualizes results within the field. Discusses limitations honestly and provides insightful future directions. | Summarizes results well but lacks depth in "implications." Limitations are generic (e.g., "sample size could be bigger"). | Discussion just repeats the results section in words. No limitations mentioned. |

weeks/week-15.qmd

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: "Week 15 - Having R Work for You: wRapping up"
3+
editor: visual
4+
---
5+
6+
We are almost at the end of the course! This week, we will be focusing on some random things related to R that could make things easier. Plus, there will be time for working on your final project, helping your peers and "office hours".
7+
8+
## Data for Today
9+
10+
We may have a demo of a workflow. In that case, we will be able to pick some data from this website below. I think the DASS (Depression, Anxiety and Stress Scale) dataset would be a good candidate.
11+
12+
[Open Source Psychometrics Project](https://openpsychometrics.org/_rawdata/){target="_parent"}
13+
14+
## Rando CalRissian
15+
16+
[papaja: Reproducible APA Manuscripts in R](https://frederikaust.com/papaja_man/){target="_blank"}
17+
18+
[WTF-R: What They Forgot to teach about R](https://rstats.wtf/){target="_blank"}
19+
20+
[Definitive R Markdown Guide](https://bookdown.org/yihui/rmarkdown/){target="_blank"}
21+
22+
[Shiny Apps](https://shiny.posit.co/){target="_blank"}
23+
24+
[Big Book of R](https://www.bigbookofr.com/){target="_blank"}
25+
26+
[Convenience Functions for Psych](https://rempsyc.remi-theriault.com/index.html){target="_blank"}
27+
28+
## In-Class Activity
29+
30+
📎Final Statistical Consulting
31+
32+
## For Next Time
33+
34+
Present your final project!
35+
36+
Turn in the final paper
37+
38+
<br><br>
39+
40+
::: {style="font-size: 0.875em;"}
41+
Back to [course schedule](/ "Course schedule")
42+
:::

0 commit comments

Comments
 (0)