-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
possibly fixed the twitter card issue
- Loading branch information
Showing
70 changed files
with
3,899 additions
and
414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,9 +63,8 @@ | |
<!-- add the twitter card and open graph tags --> | ||
<meta name="twitter:card" content="summary"> | ||
<meta name="twitter:creator" content="@djnavarro"> | ||
<meta property="og:url" content="https://learningstatisticswithr.com"> | ||
<meta property="og:title" content="Learning Statistics with R"> | ||
<meta property="og:image" content="http://learningstatisticswithr.com/images/jasmine-faint.jpg"> | ||
<meta name="twitter:image" content="http://learningstatisticswithr.com/images/jasmine-faint.jpg"> | ||
|
||
<!-- ###### end inserted header ##### --> | ||
|
||
|
@@ -1365,16 +1364,8 @@ <h3><span class="header-section-number">17.6.2</span> The Bayesian test</h3> | |
<li><strong>Nothing is fixed</strong>. Finally, it might be the case that <em>nothing</em> is fixed. Not the row columns, not the column totals, and not the total sample size either. For instance, in the <code>chapek9</code> scenario, suppose what I’d done is run the study for a fixed length of <em>time</em>. By chance, it turned out that I got 180 people to turn up to study, but it could easily have been something else. This is referred to as “Poisson” sampling, and if that’s what you’ve done you should specify <code>sampleType="poisson"</code>.</li> | ||
</ul> | ||
<p>Okay, so now we have enough knowledge to actually run a test. For the <code>chapek9</code> data, I implied that we designed the study such that the total sample size <span class="math inline">\(N\)</span> was fixed, so we should set <code>sampleType = "jointMulti"</code>. The command that we need is,</p> | ||
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">library</span>( BayesFactor )</code></pre></div> | ||
<pre><code>## Warning: package 'BayesFactor' was built under R version 3.5.2</code></pre> | ||
<pre><code>## Loading required package: coda</code></pre> | ||
<pre><code>## Loading required package: Matrix</code></pre> | ||
<pre><code>## ************ | ||
## Welcome to BayesFactor 0.9.12-4.2. If you have questions, please contact Richard Morey ([email protected]). | ||
## | ||
## Type BFManual() to open the manual. | ||
## ************</code></pre> | ||
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">contingencyTableBF</span>( crosstab, <span class="dt">sampleType =</span> <span class="st">"jointMulti"</span> )</code></pre></div> | ||
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">library</span>( BayesFactor ) | ||
<span class="kw">contingencyTableBF</span>( crosstab, <span class="dt">sampleType =</span> <span class="st">"jointMulti"</span> )</code></pre></div> | ||
<pre><code>## Bayes factor analysis | ||
## -------------- | ||
## [1] Non-indep. (a=1) : 15.92684 ±0% | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.