<?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" 
      xmlns:media="http://search.yahoo.com/mrss/" 
      xmlns:content="http://purl.org/rss/1.0/modules/content/" 
      xmlns:dc="http://purl.org/dc/elements/1.1/" 
      version="2.0">
<channel>
<title>Jorge Huanca Martinez</title>
<link>https://jorgehmartinez.github.io/blog/</link>
<atom:link href="https://jorgehmartinez.github.io/blog/index.xml" rel="self" type="application/rss+xml"/>
<description>Medición, evaluación y datos para la educación y el desarrollo social.</description>
<generator>quarto-1.11.9</generator>
<lastBuildDate>Sun, 12 Mar 2023 00:00:00 GMT</lastBuildDate>
<item>
  <title>Working Memory, Mathematical Anxiety</title>
  <dc:creator>Jorge Huanca Martinez</dc:creator>
  <link>https://jorgehmartinez.github.io/blog/posts/2023-03-12-working-memory-math-anxiety/</link>
  <description><![CDATA[ 




<section id="step-1-install-and-load-the-packages" class="level3">
<h3 class="anchored" data-anchor-id="step-1-install-and-load-the-packages">Step 1: Install and load the packages</h3>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1">pacman<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">p_load</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"broom"</span>,<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"ggpubr"</span>,<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"tidyverse"</span>,<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"readr"</span>)</span></code></pre></div></div>
</div>
</section>
<section id="step-2-load-the-data-into-r" class="level3">
<h3 class="anchored" data-anchor-id="step-2-load-the-data-into-r">Step 2: Load the data into R</h3>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb2-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Load the database</span></span>
<span id="cb2-2">data_math <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">read.csv</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"data/WMAth data.csv"</span>)</span></code></pre></div></div>
</div>
</section>
<section id="step-3-explore-outcome-variable-must-be-numeric" class="level3">
<h3 class="anchored" data-anchor-id="step-3-explore-outcome-variable-must-be-numeric">Step 3: Explore outcome variable (must be numeric)</h3>
<p>We checked if the independient variables (VI) are numeric</p>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb3" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb3-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">glimpse</span>(data_math)</span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code>Rows: 116
Columns: 8
$ age         &lt;int&gt; 42, 23, 23, 21, 23, 22, 31, 24, 27, 23, 27, 24, 25, 26, 24…
$ Opposites   &lt;int&gt; 19, 31, 29, 29, 31, 31, 37, 44, 66, 56, 40, 30, 19, 28, 46…
$ Nspan       &lt;int&gt; 27, 48, 40, 46, 46, 42, 41, 46, 47, 38, 41, 32, 38, 46, 42…
$ Colors      &lt;int&gt; 5, 9, 6, 9, 9, 7, 6, 5, 11, 10, 3, 7, 11, 7, 14, 8, 12, 7,…
$ PSWQ        &lt;int&gt; 49, 53, 77, 74, 51, 49, 64, 28, 69, 43, 52, 53, 41, 54, 38…
$ MARS        &lt;int&gt; 89, 53, 95, 109, 80, 92, 121, 47, 102, 67, 81, 108, 116, 6…
$ Fluency     &lt;int&gt; 101, 151, 120, 119, 115, 112, 83, 154, 155, 104, 148, 90, …
$ Calculation &lt;int&gt; 18, 33, 36, 29, 33, 23, 16, 40, 27, 32, 31, 20, 29, 35, 28…</code></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb5" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb5-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#Independent variables</span></span>
<span id="cb5-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#Opposites: Verbal Working Memory</span></span>
<span id="cb5-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#Nspan: Verbal Working Memory</span></span>
<span id="cb5-4"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#Colors: Visuospatial Working Memory</span></span>
<span id="cb5-5"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#PSWQ:The Penn State Worry Questionnaire, 16-item, 1-5 Likert  </span></span>
<span id="cb5-6"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#MARS:The mathematical anxiety rating scale, 30-item, 0-4 Likert </span></span>
<span id="cb5-7"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#Dependent variables</span></span>
<span id="cb5-8"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#Fluency:Math Performance Assessment.</span></span>
<span id="cb5-9"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#Calculation:Math Performance Assessment.</span></span></code></pre></div></div>
</div>
</section>
<section id="step-4-make-sure-data-assumptions" class="level3">
<h3 class="anchored" data-anchor-id="step-4-make-sure-data-assumptions">Step 4: Make sure data assumptions</h3>
<section id="a.-linearity" class="level4">
<h4 class="anchored" data-anchor-id="a.-linearity">A. Linearity</h4>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb6" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb6-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Influence of Working Memory</span></span>
<span id="cb6-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(Calculation <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> Opposites <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Nspan <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Colors, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> data_math)</span></code></pre></div></div>
<div class="cell-output-display">
<div>
<figure class="figure">
<p><img src="https://jorgehmartinez.github.io/blog/posts/2023-03-12-working-memory-math-anxiety/index_files/figure-html/unnamed-chunk-5-1.png" class="img-fluid figure-img" width="672"></p>
</figure>
</div>
</div>
<div class="cell-output-display">
<div>
<figure class="figure">
<p><img src="https://jorgehmartinez.github.io/blog/posts/2023-03-12-working-memory-math-anxiety/index_files/figure-html/unnamed-chunk-5-2.png" class="img-fluid figure-img" width="672"></p>
</figure>
</div>
</div>
<div class="cell-output-display">
<div>
<figure class="figure">
<p><img src="https://jorgehmartinez.github.io/blog/posts/2023-03-12-working-memory-math-anxiety/index_files/figure-html/unnamed-chunk-5-3.png" class="img-fluid figure-img" width="672"></p>
</figure>
</div>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb7" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb7-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Influence of Math Anxiety</span></span>
<span id="cb7-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(Fluency <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Calculation <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> MARS <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> PSWQ, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> data_math)</span></code></pre></div></div>
<div class="cell-output-display">
<div>
<figure class="figure">
<p><img src="https://jorgehmartinez.github.io/blog/posts/2023-03-12-working-memory-math-anxiety/index_files/figure-html/unnamed-chunk-5-4.png" class="img-fluid figure-img" width="672"></p>
</figure>
</div>
</div>
<div class="cell-output-display">
<div>
<figure class="figure">
<p><img src="https://jorgehmartinez.github.io/blog/posts/2023-03-12-working-memory-math-anxiety/index_files/figure-html/unnamed-chunk-5-5.png" class="img-fluid figure-img" width="672"></p>
</figure>
</div>
</div>
</div>
</section>
<section id="b.-independence-of-observations" class="level4">
<h4 class="anchored" data-anchor-id="b.-independence-of-observations">B. Independence of observations</h4>
<p>Teoricamente se entiende que las variables son independientes</p>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb8" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb8-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(car)</span></code></pre></div></div>
<div class="cell-output cell-output-stderr">
<pre><code>Loading required package: carData</code></pre>
</div>
<div class="cell-output cell-output-stderr">
<pre><code>
Attaching package: 'car'</code></pre>
</div>
<div class="cell-output cell-output-stderr">
<pre><code>The following object is masked from 'package:dplyr':

    recode</code></pre>
</div>
<div class="cell-output cell-output-stderr">
<pre><code>The following object is masked from 'package:purrr':

    some</code></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb13" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb13-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#correlation</span></span>
<span id="cb13-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">cor</span>(data_math<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>Calculation, data_math<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>MARS)</span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code>[1] -0.4866136</code></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb15" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb15-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">cor</span>(data_math<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>Calculation, data_math<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>Opposites)</span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code>[1] 0.3959613</code></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb17" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb17-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">cor</span>(data_math<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>Calculation, data_math<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>Nspan)</span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code>[1] 0.3183924</code></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb19" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb19-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#variance inflation factor</span></span>
<span id="cb19-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">vif</span>(m_rendimiento_lm)</span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code>     MARS Opposites     Nspan 
 1.110124  1.105262  1.169471 </code></pre>
</div>
</div>
</section>
<section id="c.-normality" class="level4">
<h4 class="anchored" data-anchor-id="c.-normality">C. Normality</h4>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb21" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb21-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#Independent variables</span></span>
<span id="cb21-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#Verbal Working Memory</span></span>
<span id="cb21-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">hist</span>(data_math<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>Opposites) </span></code></pre></div></div>
<div class="cell-output-display">
<div>
<figure class="figure">
<p><img src="https://jorgehmartinez.github.io/blog/posts/2023-03-12-working-memory-math-anxiety/index_files/figure-html/unnamed-chunk-8-1.png" class="img-fluid figure-img" width="672"></p>
</figure>
</div>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb22" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb22-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">hist</span>(data_math<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>Nspan)</span></code></pre></div></div>
<div class="cell-output-display">
<div>
<figure class="figure">
<p><img src="https://jorgehmartinez.github.io/blog/posts/2023-03-12-working-memory-math-anxiety/index_files/figure-html/unnamed-chunk-8-2.png" class="img-fluid figure-img" width="672"></p>
</figure>
</div>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb23" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb23-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#Math Anxiety</span></span>
<span id="cb23-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">hist</span>(data_math<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>MARS)</span></code></pre></div></div>
<div class="cell-output-display">
<div>
<figure class="figure">
<p><img src="https://jorgehmartinez.github.io/blog/posts/2023-03-12-working-memory-math-anxiety/index_files/figure-html/unnamed-chunk-8-3.png" class="img-fluid figure-img" width="672"></p>
</figure>
</div>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb24" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb24-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#Independent variables</span></span>
<span id="cb24-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">hist</span>(data_math<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>Fluency)</span></code></pre></div></div>
<div class="cell-output-display">
<div>
<figure class="figure">
<p><img src="https://jorgehmartinez.github.io/blog/posts/2023-03-12-working-memory-math-anxiety/index_files/figure-html/unnamed-chunk-8-4.png" class="img-fluid figure-img" width="672"></p>
</figure>
</div>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb25" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb25-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">hist</span>(data_math<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>Calculation)</span></code></pre></div></div>
<div class="cell-output-display">
<div>
<figure class="figure">
<p><img src="https://jorgehmartinez.github.io/blog/posts/2023-03-12-working-memory-math-anxiety/index_files/figure-html/unnamed-chunk-8-5.png" class="img-fluid figure-img" width="672"></p>
</figure>
</div>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb26" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb26-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Se puede evaluar la normalidad por  QQplot, Kurtosis</span></span></code></pre></div></div>
</div>
</section>
</section>
<section id="step-5-perform-the-linear-regression-analysis" class="level3">
<h3 class="anchored" data-anchor-id="step-5-perform-the-linear-regression-analysis">Step 5: Perform the linear regression analysis</h3>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb27" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb27-1">m_rendimiento_lm <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">lm</span>(Calculation <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">~</span> MARS <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Opposites <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> Nspan, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">data =</span> data_math)</span>
<span id="cb27-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">summary</span>(m_rendimiento_lm)</span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code>
Call:
lm(formula = Calculation ~ MARS + Opposites + Nspan, data = data_math)

Residuals:
     Min       1Q   Median       3Q      Max 
-14.6986  -4.7717  -0.6258   4.5865  19.0717 

Coefficients:
            Estimate Std. Error t value Pr(&gt;|t|)    
(Intercept) 26.80750    4.04794   6.622 1.28e-09 ***
MARS        -0.11188    0.02265  -4.940 2.75e-06 ***
Opposites    0.19403    0.05426   3.576 0.000516 ***
Nspan        0.10409    0.07362   1.414 0.160182    
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Residual standard error: 5.982 on 112 degrees of freedom
Multiple R-squared:  0.3448,    Adjusted R-squared:  0.3273 
F-statistic: 19.65 on 3 and 112 DF,  p-value: 2.642e-10</code></pre>
</div>
</div>
</section>
<section id="step-6-check-the-homocedasticity" class="level3">
<h3 class="anchored" data-anchor-id="step-6-check-the-homocedasticity">Step 6: Check the homocedasticity</h3>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb29" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb29-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">par</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">mfrow=</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>,<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>))</span>
<span id="cb29-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(m_rendimiento_lm)</span></code></pre></div></div>
<div class="cell-output-display">
<div>
<figure class="figure">
<p><img src="https://jorgehmartinez.github.io/blog/posts/2023-03-12-working-memory-math-anxiety/index_files/figure-html/unnamed-chunk-10-1.png" class="img-fluid figure-img" width="672"></p>
</figure>
</div>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb30" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb30-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">par</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">mfrow=</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>,<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>))</span></code></pre></div></div>
</div>
</section>
<section id="step-7-perform-a-graph-to-visualize-the-results" class="level3">
<h3 class="anchored" data-anchor-id="step-7-perform-a-graph-to-visualize-the-results">Step 7: Perform a graph to visualize the results</h3>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb31" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb31-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">print</span>(m_rendimiento_lm)</span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code>
Call:
lm(formula = Calculation ~ MARS + Opposites + Nspan, data = data_math)

Coefficients:
(Intercept)         MARS    Opposites        Nspan  
    26.8075      -0.1119       0.1940       0.1041  </code></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb33" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb33-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Get the Intercept and coefficients as vector elements.</span></span>
<span id="cb33-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">cat</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"# # # # The Coefficient Values # # # "</span>,<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">\n</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span>)</span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code># # # # The Coefficient Values # # #  </code></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb35" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb35-1">a <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">coef</span>(m_rendimiento_lm)[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>]</span>
<span id="cb35-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">print</span>(a)</span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code>(Intercept) 
    26.8075 </code></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb37" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb37-1">Xedad <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">coef</span>(m_rendimiento_lm)[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>]</span>
<span id="cb37-2">Xprom <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">coef</span>(m_rendimiento_lm)[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>]</span>
<span id="cb37-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">print</span>(Xedad)</span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code>      MARS 
-0.1118795 </code></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb39" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb39-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">print</span>(Xprom)</span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code>Opposites 
0.1940296 </code></pre>
</div>
</div>


</section>

 ]]></description>
  <category>R</category>
  <category>regression</category>
  <category>psychometrics</category>
  <guid>https://jorgehmartinez.github.io/blog/posts/2023-03-12-working-memory-math-anxiety/</guid>
  <pubDate>Sun, 12 Mar 2023 00:00:00 GMT</pubDate>
  <media:content url="https://jorgehmartinez.github.io/blog/posts/2023-03-12-working-memory-math-anxiety/image/cover.jpg" medium="image" type="image/jpeg" height="103" width="144"/>
</item>
</channel>
</rss>
