Skip to content

Commit

Permalink
update anova text
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyDoorn committed Oct 15, 2024
1 parent ff34a3b commit 6c29aff
Show file tree
Hide file tree
Showing 17 changed files with 3,156 additions and 6 deletions.
9 changes: 6 additions & 3 deletions SSR/2024/16. chi_squared_test/16. chi_squared_test.slide.html
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,8 @@ <h2>Data</h2>
<div class="cell">
<div class="cell-output-display">

<div class="datatables html-widget html-fill-item" id="htmlwidget-37dd03dca93cd56a21a1" style="width:100%;height:auto;"></div>
<script type="application/json" data-for="htmlwidget-37dd03dca93cd56a21a1">{"x":{"filter":"none","vertical":false,"data":[["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96","97","98","99","100","101","102"],["Dogs","Other","Cats","Dogs","Dogs","Cats","Dogs","Dogs","Dogs","Other","Dogs","Cats","Dogs","Cats","Cats","Cats","Cats","Cats","Dogs","Cats","Cats","Cats","Dogs","Dogs","Dogs","Dogs","Dogs","Dogs","Dogs","Cats","Cats","Dogs","Cats","Cats","Cats","Cats","Cats","Cats","Dogs","Dogs","Cats","Dogs","Cats","Dogs","Other","Cats","Cats","Dogs","Dogs","Cats","Cats","Cats","Dogs","Cats","Dogs","Cats","Cats","Cats","Dogs","Dogs","Dogs","Cats","Dogs","Cats","Dogs","Other","Cats","Other","Cats","Cats","Dogs","Cats","Dogs","Cats","Dogs","Dogs","Dogs","Dogs","Other","Dogs","Cats","Dogs","Dogs","Cats","Dogs","Dogs","Cats","Dogs","Dogs","Dogs","Cats","Cats","Cats","Cats","Dogs","Dogs","Cats","Cats","Dogs","Other","Dogs","Dogs"],["Live","Live","Live","Live","Live","Live","Live","Live","Live","Live","Live","Live","Live","Live","Live","Live","Digital","Digital","Live","Live","Digital","Live","Live","Live","Live","Live","Live","Digital","Live","Live","Live","Digital","Live","Live","Live","Live","Digital","Live","Digital","Digital","Live","Digital","Live","Live","Live","Digital","Live","Digital","Digital","Digital","Digital","Digital","Live","Live","Digital","Live","Digital","Digital","Digital","Live","Digital","Live","Live","Live","Live","Live","Digital","Digital","Digital","Live","Digital","Digital","Digital","Live","Live","Digital","Digital","Live","Live","Live","Live","Digital","Digital","Digital","Digital","Digital","Digital","Live","Digital","Digital","Digital","Digital","Digital","Live","Digital","Digital","Live","Digital","Digital","Digital","Digital","Digital"],["Introvert","Introvert","Introvert","Extrovert","Introvert","Introvert","Introvert","Extrovert","Extrovert","Extrovert","Extrovert","Introvert","Extrovert","Extrovert","Introvert","Introvert","Introvert","Extrovert","Extrovert","Introvert","Introvert","Introvert","Introvert","Introvert","Extrovert","Introvert","Extrovert","Introvert","Introvert","Introvert","Introvert","Introvert","Introvert","Introvert","Extrovert","Introvert","Introvert","Introvert","Extrovert","Extrovert","Extrovert","Extrovert","Introvert","Introvert","Extrovert","Introvert","Extrovert","Introvert","Extrovert","Introvert","Extrovert","Introvert","Extrovert","Introvert","Extrovert","Introvert","Extrovert","Introvert","Extrovert","Extrovert","Introvert","Introvert","Extrovert","Introvert","Introvert","Introvert","Extrovert","Introvert","Introvert","Extrovert","Introvert","Introvert","Introvert","Extrovert","Introvert","Extrovert","Extrovert","Introvert","Extrovert","Introvert","Extrovert","Introvert","Introvert","Extrovert","Introvert","Extrovert","Extrovert","Introvert","Extrovert","Extrovert","Extrovert","Introvert","Introvert","Introvert","Introvert","Extrovert","Extrovert","Introvert","Extrovert","Extrovert","Introvert","Extrovert"]],"container":"<table class=\"display\">\n <thead>\n <tr>\n <th> <\/th>\n <th>Animal<\/th>\n <th>Lecture<\/th>\n <th>Personality<\/th>\n <\/tr>\n <\/thead>\n<\/table>","options":{"columnDefs":[{"orderable":false,"targets":0},{"name":" ","targets":0},{"name":"Animal","targets":1},{"name":"Lecture","targets":2},{"name":"Personality","targets":3}],"order":[],"autoWidth":false,"orderClasses":false}},"evals":[],"jsHooks":[]}</script>
<div class="datatables html-widget html-fill-item" id="htmlwidget-2bcdb51b436f719f9e18" style="width:100%;height:auto;"></div>
<script type="application/json" data-for="htmlwidget-2bcdb51b436f719f9e18">{"x":{"filter":"none","vertical":false,"data":[["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96","97","98","99","100","101","102"],["Dogs","Other","Cats","Dogs","Dogs","Cats","Dogs","Dogs","Dogs","Other","Dogs","Cats","Dogs","Cats","Cats","Cats","Cats","Cats","Dogs","Cats","Cats","Cats","Dogs","Dogs","Dogs","Dogs","Dogs","Dogs","Dogs","Cats","Cats","Dogs","Cats","Cats","Cats","Cats","Cats","Cats","Dogs","Dogs","Cats","Dogs","Cats","Dogs","Other","Cats","Cats","Dogs","Dogs","Cats","Cats","Cats","Dogs","Cats","Dogs","Cats","Cats","Cats","Dogs","Dogs","Dogs","Cats","Dogs","Cats","Dogs","Other","Cats","Other","Cats","Cats","Dogs","Cats","Dogs","Cats","Dogs","Dogs","Dogs","Dogs","Other","Dogs","Cats","Dogs","Dogs","Cats","Dogs","Dogs","Cats","Dogs","Dogs","Dogs","Cats","Cats","Cats","Cats","Dogs","Dogs","Cats","Cats","Dogs","Other","Dogs","Dogs"],["Live","Live","Live","Live","Live","Live","Live","Live","Live","Live","Live","Live","Live","Live","Live","Live","Digital","Digital","Live","Live","Digital","Live","Live","Live","Live","Live","Live","Digital","Live","Live","Live","Digital","Live","Live","Live","Live","Digital","Live","Digital","Digital","Live","Digital","Live","Live","Live","Digital","Live","Digital","Digital","Digital","Digital","Digital","Live","Live","Digital","Live","Digital","Digital","Digital","Live","Digital","Live","Live","Live","Live","Live","Digital","Digital","Digital","Live","Digital","Digital","Digital","Live","Live","Digital","Digital","Live","Live","Live","Live","Digital","Digital","Digital","Digital","Digital","Digital","Live","Digital","Digital","Digital","Digital","Digital","Live","Digital","Digital","Live","Digital","Digital","Digital","Digital","Digital"],["Introvert","Introvert","Introvert","Extrovert","Introvert","Introvert","Introvert","Extrovert","Extrovert","Extrovert","Extrovert","Introvert","Extrovert","Extrovert","Introvert","Introvert","Introvert","Extrovert","Extrovert","Introvert","Introvert","Introvert","Introvert","Introvert","Extrovert","Introvert","Extrovert","Introvert","Introvert","Introvert","Introvert","Introvert","Introvert","Introvert","Extrovert","Introvert","Introvert","Introvert","Extrovert","Extrovert","Extrovert","Extrovert","Introvert","Introvert","Extrovert","Introvert","Extrovert","Introvert","Extrovert","Introvert","Extrovert","Introvert","Extrovert","Introvert","Extrovert","Introvert","Extrovert","Introvert","Extrovert","Extrovert","Introvert","Introvert","Extrovert","Introvert","Introvert","Introvert","Extrovert","Introvert","Introvert","Extrovert","Introvert","Introvert","Introvert","Extrovert","Introvert","Extrovert","Extrovert","Introvert","Extrovert","Introvert","Extrovert","Introvert","Introvert","Extrovert","Introvert","Extrovert","Extrovert","Introvert","Extrovert","Extrovert","Extrovert","Introvert","Introvert","Introvert","Introvert","Extrovert","Extrovert","Introvert","Extrovert","Extrovert","Introvert","Extrovert"]],"container":"<table class=\"display\">\n <thead>\n <tr>\n <th> <\/th>\n <th>Animal<\/th>\n <th>Lecture<\/th>\n <th>Personality<\/th>\n <\/tr>\n <\/thead>\n<\/table>","options":{"columnDefs":[{"orderable":false,"targets":0},{"name":" ","targets":0},{"name":"Animal","targets":1},{"name":"Lecture","targets":2},{"name":"Personality","targets":3}],"order":[],"autoWidth":false,"orderClasses":false}},"evals":[],"jsHooks":[]}</script>
</div>
</div>
</small><p><small></small></p>
Expand Down Expand Up @@ -625,7 +625,10 @@ <h2>Yates’s correction</h2>
<div class="cell-output cell-output-stdout">
<pre><code>[1] 0.4431462</code></pre>
</div>
<div class="sourceCode cell-code" id="cb17"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb17-1"><a href="#cb17-1"></a><span class="co"># visualize::visualize.chisq(chi.squared.yates, df, section='upper')</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="sourceCode cell-code" id="cb17"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb17-1"><a href="#cb17-1"></a>visualize<span class="sc">::</span><span class="fu">visualize.chisq</span>(chi.squared.yates, df, <span class="at">section=</span><span class="st">'upper'</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<p><img data-src="16.-chi_squared_test_files/figure-revealjs/unnamed-chunk-13-1.png" width="960"></p>
</div>
</div></section><section id="standardized-residuals" class="slide level2 subsection">
<h2>Standardized residuals</h2>
<p><span class="math inline">\(\text{standardized residuals} = \frac{ \text{observed}_{ij} - \text{model}_{ij} }{ \sqrt{ \text{model}_{ij} } }\)</span></p>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion SSR/topics/chi_square/chi_square_test.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ $\chi^2 = \sum \frac{ ( | \text{observed}_{ij} - \text{model}_{ij} | - .5)^2}{\t
# Calculate Yates's corrected chi squared
chi.squared.yates <- sum((abs(observed - modelPredictions) - .5)^2 / modelPredictions)
chi.squared.yates
# visualize::visualize.chisq(chi.squared.yates, df, section='upper')
visualize::visualize.chisq(chi.squared.yates, df, section='upper')
```

<!-- ## Likelihood ratio {.subsection} -->
Expand Down
4 changes: 2 additions & 2 deletions extra-texts/ViolatingNormalityANOVA.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

<meta name="author" content="JvD">
<meta name="dcterms.date" content="2024-10-11">
<meta name="dcterms.date" content="2024-10-15">

<title>Why Assumptions Matter</title>
<style>
Expand Down Expand Up @@ -98,7 +98,7 @@ <h1 class="title">Why Assumptions Matter</h1>
<div>
<div class="quarto-title-meta-heading">Published</div>
<div class="quarto-title-meta-contents">
<p class="date">October 11, 2024</p>
<p class="date">October 15, 2024</p>
</div>
</div>

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6c29aff

Please sign in to comment.