Skip to content

Commit

Permalink
Merge pull request #14 from kylelang/updateCourseInfo
Browse files Browse the repository at this point in the history
Forgot to render the GitBook after the latest updates
  • Loading branch information
kylelang authored Aug 25, 2024
2 parents 8ba2e3a + 1fe4732 commit 4f6a373
Show file tree
Hide file tree
Showing 11 changed files with 94 additions and 53 deletions.
1 change: 0 additions & 1 deletion docs/a2_worksheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@ <h2>Assignment 2: Confirmatory Factor Analysis<a href="a2_worksheet.html#a2_work
<ul>
<li><a href="data/a2_template.Rmd">R Markdown</a></li>
<li><a href="data/a2_template.qmd">Quarto</a></li>
<li><a href="data/a2_template.docx">MS Word</a></li>
</ul></li>
</ul>
<!------------------------------------------------------------------------------
Expand Down
65 changes: 43 additions & 22 deletions docs/data/a2_template.Rmd
Original file line number Diff line number Diff line change
@@ -1,75 +1,96 @@
---
title: "Group 42"
author: ["Zaphod Beeblebrox", "Tricia McMillan", "Marvin T.P. Andy"]
date: "1970-01-01"

documentclass: article
papersize: a4
geometry: margin = 20mm
fontfamily: sans
output:
pdf_document:
number_sections: true
---

```{r setup, include=FALSE}
```{r setup, include = FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(lavaan)
library(knitr)
```

# Theory
\hrule

\vspace{6pt}

## Which dataset are you using?
For Assignment 2, you will conduct a CFA and report the results via this
worksheet.

## Describe your hypothesized measurement model.
- Provide the requested information for each of the following items.
- Only include the necessary information; waffling will hurt your grade.
- Replace the placeholder values above with your Assignment 2 Group's details
and the appropriate date.
- Submit the completed worksheet as a PDF document.

## Provide a path diagram of your theoretical measurement model.
*NOTE:* The relative weights for each item are given in brackets.

\vspace{12pt}

# Estimation
\hrule

# Which dataset are you using? [1]

# Describe your hypothesized measurement model. [2]

## Provide the lavaan syntax for your model.
- *What latent factors are you estimating?*
- *Which items will you use to define each latent factor?*
- *Why is your hypothesized factor structure justified?*

# Provide a path diagram of your theoretical measurement model. [2]

# Provide the lavaan syntax for your model. [2]

```{r}
```

## Use the `lavaan::cfa()` function to estimate your model.
# Use the `lavaan::cfa()` function to estimate your model. [2]

```{r}
```

\vspace{12pt}

# Results
# Report the relevant parameter estimates from your fitted model. [3]

## Report the relevant parameter estimates from your fitted model.
- *Don't include the entire model summary.*
- *The `lavaan::lavInspect()` or `lavaan::parameterEstimates()` functions could
be useful here.*

```{r, echo = FALSE}
```

## Report the $R^2$ estimates from your fitted model.
# Report the $R^2$ estimates from your fitted model. [2]

```{r, echo = FALSE}
```

## Report the model fit indices for your estimated model.
# Report suitable model fit indices for your estimated model. [3]

- *Don't include every fit index lavaan provides.*

```{r, echo = FALSE}
```

\vspace{12pt}

# Interpretation

## Do your results support the validity of your hypothesized model?
# Do your results support the validity of your hypothesized model? [4]

- *Explain why or why not.*

## Do you think the model could be improved?
# Do you think the model could be improved? [2]

- *If so, explain how you would modify the model.*
- *If not, explain why no improvement is possible.*

---
\vspace{12pt}

\hrule
Binary file modified docs/data/a2_template.pdf
Binary file not shown.
66 changes: 44 additions & 22 deletions docs/data/a2_template.qmd
Original file line number Diff line number Diff line change
@@ -1,75 +1,97 @@
---
title: "Group 42"
author: ["Zaphod Beeblebrox", "Tricia McMillan", "Marvin T.P. Andy"]
date: "1970-01-01"

documentclass: article
pdf-engine: pdflatex
papersize: a4
geometry: margin = 20mm
fontfamily: sans
format:
pdf:
number-sections: true
---

```{r setup, include=FALSE}
```{r setup, include = FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(lavaan)
library(knitr)
```

# Theory
\hrule

\vspace{6pt}

## Which dataset are you using?
For Assignment 2, you will conduct a CFA and report the results via this
worksheet.

## Describe your hypothesized measurement model.
- Provide the requested information for each of the following items.
- Only include the necessary information; waffling will hurt your grade.
- Replace the placeholder values above with your Assignment 2 Group's details
and the appropriate date.
- Submit the completed worksheet as a PDF document.

## Provide a path diagram of your theoretical measurement model.
*NOTE:* The relative weights for each item are given in brackets.

\vspace{12pt}

# Estimation
\hrule

# Which dataset are you using? [1]

# Describe your hypothesized measurement model. [2]

## Provide the lavaan syntax for your model.
- *What latent factors are you estimating?*
- *Which items will you use to define each latent factor?*
- *Why is your hypothesized factor structure justified?*

# Provide a path diagram of your theoretical measurement model. [2]

# Provide the lavaan syntax for your model. [2]

```{r}
```

## Use the `lavaan::cfa()` function to estimate your model.
# Use the `lavaan::cfa()` function to estimate your model. [2]

```{r}
```

\vspace{12pt}

# Results
# Report the relevant parameter estimates from your fitted model. [3]

## Report the relevant parameter estimates from your fitted model.
- *Don't include the entire model summary.*
- *The `lavaan::lavInspect()` or `lavaan::parameterEstimates()` functions could
be useful here.*

```{r, echo = FALSE}
```

## Report the $R^2$ estimates from your fitted model.
# Report the $R^2$ estimates from your fitted model. [2]

```{r, echo = FALSE}
```

## Report the model fit indices for your estimated model.
# Report suitable model fit indices for your estimated model. [3]

- *Don't include every fit index lavaan provides.*

```{r, echo = FALSE}
```

\vspace{12pt}

# Interpretation

## Do your results support the validity of your hypothesized model?
# Do your results support the validity of your hypothesized model? [4]

- *Explain why or why not.*

## Do you think the model could be improved?
# Do you think the model could be improved? [2]

- *If so, explain how you would modify the model.*
- *If not, explain why no improvement is possible.*

---
\vspace{12pt}

\hrule
7 changes: 3 additions & 4 deletions docs/elaboration-tips.html
Original file line number Diff line number Diff line change
Expand Up @@ -642,13 +642,12 @@ <h3>Reporting Standards<a href="elaboration-tips.html#reporting_standards" class
<ul>
<li>Scientific laws</li>
<li>Physical constants</li>
<li>Logical (in the technical sense) implications of some irrefutable
antecedent</li>
<li>Logical (in the technical sense) implications of irrefutable antecedents</li>
<li>Your own opinions (assuming you’re not trying to pass them off as facts)</li>
</ul></li>
</ul>
<p>The next three sections cover some specific considerations for reporting common
classes of statistical results.</p>
<p>The next three subsections cover some specific considerations for reporting
common classes of statistical results.</p>
<div id="significance-tests" class="section level4 unnumbered hasAnchor">
<h4>Significance Tests<a href="elaboration-tips.html#significance-tests" class="anchor-section" aria-label="Anchor link to header"></a></h4>
<p>Any claim of a significant effect must be supported by relevant statistical
Expand Down
6 changes: 3 additions & 3 deletions docs/in-class-exercises-3.html
Original file line number Diff line number Diff line change
Expand Up @@ -631,12 +631,12 @@ <h3><span class="header-section-number">4.4.4</span> </h3>
<span id="cb158-5"><a href="in-class-exercises-3.html#cb158-5" tabindex="-1"></a>pa_trust <span class="ot">&lt;-</span> <span class="fu">select</span>(ess, trstlgl<span class="sc">:</span>trstplt) <span class="sc">%&gt;%</span></span>
<span id="cb158-6"><a href="in-class-exercises-3.html#cb158-6" tabindex="-1"></a> <span class="fu">fa.parallel</span>(<span class="at">fa =</span> <span class="st">&quot;fa&quot;</span>) </span></code></pre></div>
<p><img src="willy_wallaby_from_wasatch_files/figure-html/unnamed-chunk-279-1.png" width="672" /></p>
<pre><code>## Parallel analysis suggests that the number of factors = 6 and the number of components = NA</code></pre>
<pre><code>## Parallel analysis suggests that the number of factors = 5 and the number of components = NA</code></pre>
<details>
<summary>
Click for explanation
</summary>
<p>The results of the parallel analysis suggest 6 factors.</p>
<p>The results of the parallel analysis suggest 5 factors.</p>
<hr />
<p>If you’ve been paying close attention, you may have noticed that we need to
compute the eigenvalues from the original data to run parallel analysis.
Expand Down Expand Up @@ -672,7 +672,7 @@ <h3><span class="header-section-number">4.4.4</span> </h3>
have narrowed the range.</p>
<ul>
<li>Based on the scree plot and parallel analysis, we should consider solutions
for 3 to 6 factors.</li>
for 3 to 5 factors.</li>
<li>We need to examine the factor loadings to see which solution makes the most
substantive sense.</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion docs/search_index.json

Large diffs are not rendered by default.

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
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.

0 comments on commit 4f6a373

Please sign in to comment.