Skip to content

Commit

Permalink
consolidated practice code into software page
Browse files Browse the repository at this point in the history
  • Loading branch information
jhelvy committed Jun 13, 2023
1 parent 9cd59c9 commit 6244b8d
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 77 deletions.
4 changes: 2 additions & 2 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ website:
- text: "4: Fielding Surveys"
icon: globe
href: parts/fielding-surveys.qmd
- text: Software
- text: Software & code
icon: download
href: software.qmd
- text: About
Expand All @@ -70,7 +70,7 @@ format:
html:
theme: cosmo
css: styles.css
anchor-sections: true
anchor-sections: false
smooth-scroll: true
link-external-newwindow: true
include-in-header: "_includes/header.html"
32 changes: 15 additions & 17 deletions index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,29 @@ John Paul Helveston<br>June 15, 2023<br>George Washington University

:::

<hr>

::: {.grid}

::: {.g-col-6}

### Part 1: [Introduction](parts/introduction.qmd)

Introduction to an open source workflow for choice-based conjoint analysis:
Introducing an open source workflow for conjoint analysis.

1. What is conjoint analysis?
2. Why {{< fa rproject >}}
2. Why {{< fa rproject >}}?
3. High-level overview of open source workflow.

:::

::: {.g-col-6}

### Part 2: [Designing surveys with {cbcTools}](parts/designing-surveys.qmd)
### Part 2: [Designing surveys](parts/designing-surveys.qmd)

How to use the {{< var cbcTools >}} package to design and test choice-based conjoint surveys:
Using the {{< var cbcTools >}} package to design and test conjoint surveys.

1. Design of experiment
2. Simulating choices
3. Assessing power
1. Design of experiment.
2. Simulating choices.
3. Assessing power.

:::

Expand All @@ -51,23 +49,23 @@ How to use the {{< var cbcTools >}} package to design and test choice-based conj

::: {.g-col-6}

### Part 3: [Estimating models with {logitr}](parts/estimating-models.qmd)
### Part 3: [Estimating models}](parts/estimating-models.qmd)

How to use the {{< var logitr >}} package to estimate logit models on simulated data:
Using the {{< var logitr >}} package to estimate logit models.

1. Mixed logit models
2. WTP space models
1. Mixed logit models.
2. WTP space models.

:::

::: {.g-col-6}

### Part 4: [Fielding surveys with formr](parts/fielding-surveys.qmd)
### Part 4: [Fielding surveys](parts/fielding-surveys.qmd)

How to use the {{< var formr >}} platform to field conjoint surveys online:
Using the {{< var formr >}} platform to field conjoint surveys online.

1. Using RMarkdown to design a survey
2. Implementing a choice-based conjoint survey in formr
1. Using RMarkdown to design a survey.
2. Implementing a choice-based conjoint survey in formr.

:::

Expand Down
18 changes: 1 addition & 17 deletions parts/designing-surveys.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ title: "Designing Surveys"
part <- "designing-surveys"
path_slides <- file.path(part, "index.html")
path_pdf <- file.path(part, glue::glue("{part}.pdf"))
path_notes <- file.path(part, glue::glue("{part}.zip"))
```

::: {.grid}
Expand All @@ -18,11 +17,8 @@ path_notes <- file.path(part, glue::glue("{part}.zip"))
**KEYBOARD SHORTCUTS**

- Slide navigation: <kbd>←</kbd> / <kbd>→</kbd>

- Full screen: <kbd>f</kbd>

- Slide overview: <kbd>o</kbd>

- Shortcuts: <kbd>h</kbd>

:::
Expand All @@ -47,19 +43,7 @@ path_notes <- file.path(part, glue::glue("{part}.zip"))

**RESOURCES**

<a href="https://jhelvy.github.io/cbcTools/" class="btn-notes"><i class="fas fa-external-link-alt"></i> Documentation</a>

:::

:::

::: {.g-col-3}

::: {.class-buttons}

**PRACTICE**

<a href=`r path_notes` class="btn-notes"><i class="fas fa-download"></i> Zip file</a>
<a href="https://jhelvy.github.io/cbcTools/" class="btn-notes"><i class="fas fa-external-link-alt"></i> {cbcTools}</a>

:::

Expand Down
18 changes: 1 addition & 17 deletions parts/estimating-models.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ title: "Estimating Models"
part <- "estimating-models"
path_slides <- file.path(part, "index.html")
path_pdf <- file.path(part, glue::glue("{part}.pdf"))
path_notes <- file.path(part, glue::glue("{part}.zip"))
```

::: {.grid}
Expand All @@ -18,11 +17,8 @@ path_notes <- file.path(part, glue::glue("{part}.zip"))
**KEYBOARD SHORTCUTS**

- Slide navigation: <kbd>←</kbd> / <kbd>→</kbd>

- Full screen: <kbd>f</kbd>

- Slide overview: <kbd>o</kbd>

- Shortcuts: <kbd>h</kbd>

:::
Expand All @@ -47,26 +43,14 @@ path_notes <- file.path(part, glue::glue("{part}.zip"))

**RESOURCES**

<a href="https://jhelvy.github.io/logitr/" class="btn-notes"><i class="fas fa-external-link-alt"></i> Documentation</a>
<a href="https://jhelvy.github.io/logitr/" class="btn-notes"><i class="fas fa-external-link-alt"></i> {logitr}</a>

<a href="https://doi.org/10.18637/jss.v105.i10" class="btn-notes"><i class="fas fa-external-link-alt"></i> JSS Article</a>

:::

:::

::: {.g-col-3}

::: {.class-buttons}

**PRACTICE**

<a href=`r path_notes` class="btn-notes"><i class="fas fa-download"></i> Zip file</a>

:::

:::

:::

```{r lexi-demo, echo=FALSE}
Expand Down
9 changes: 2 additions & 7 deletions parts/fielding-surveys.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ path_notes <- file.path(part, glue::glue("{part}.zip"))
**KEYBOARD SHORTCUTS**

- Slide navigation: <kbd>←</kbd> / <kbd>→</kbd>

- Full screen: <kbd>f</kbd>

- Slide overview: <kbd>o</kbd>

- Shortcuts: <kbd>h</kbd>

:::
Expand Down Expand Up @@ -51,8 +48,6 @@ path_notes <- file.path(part, glue::glue("{part}.zip"))

<a href="https://www.jhelvy.com/posts/2021-09-18-choice-based-conjoint-surveys-in-r-with-formr/" class="btn-notes"><i class="fas fa-external-link-alt"></i> blog post</a>

<a href="https://formr.org/" class="btn-notes"><i class="fas fa-external-link-alt"></i> formr.org</a>

:::

:::
Expand All @@ -61,9 +56,9 @@ path_notes <- file.path(part, glue::glue("{part}.zip"))

::: {.class-buttons}

**PRACTICE**
<br>

<a href=`r path_notes` class="btn-notes"><i class="fas fa-download"></i> Zip file</a>
<a href="https://formr.org/" class="btn-notes"><i class="fas fa-external-link-alt"></i> formr.org</a>

:::

Expand Down
11 changes: 0 additions & 11 deletions parts/introduction.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,8 @@ path_pdf <- file.path(part, glue::glue("{part}.pdf"))
**KEYBOARD SHORTCUTS**

- Slide navigation: <kbd>←</kbd> / <kbd>→</kbd>

- Full screen: <kbd>f</kbd>

- Slide overview: <kbd>o</kbd>

- Shortcuts: <kbd>h</kbd>

:::
Expand All @@ -42,14 +39,6 @@ path_pdf <- file.path(part, glue::glue("{part}.pdf"))

::: {.g-col-3}

::: {.class-buttons}

**RESOURCES**

<a href="https://jhelvy.github.io/cbcTools/" class="btn-notes"><i class="fas fa-external-link-alt"></i> Documentation</a>

:::

:::

:::
Expand Down
12 changes: 6 additions & 6 deletions software.qmd
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Software
# Workshop Software & Code

1. Install the latest version of R and RStudio:
1. Download and unzip [this code](practice/2023-qux-conf-conjoint.zip) for the practice sessions.

2. Install the latest version of R and RStudio:

- [Download and install R](https://cloud.r-project.org) (version 4.0.2 or higher)
- [Download and install RStudio](https://rstudio.com/products/rstudio/download/) (Desktop version)

2. Open RStudio and run this code to install the packages we'll be using:
3. Open RStudio and run this code to install the packages we'll be using:

```{r}
#| eval: false
Expand All @@ -14,8 +16,6 @@ install.packages('logitr')
install.packages('cbcTools')
```

3. As a backup, sign up for [Posit Cloud](https://posit.cloud/plans/free) (the free version). It's basically the same thing as RStudio, but accessible via a web browser. If things aren't working on your computer, this is a great backup to quickly get back to working in RStudio.

> For reference, "Posit" is the company that makes "RStudio", the software we'll use to work with R.
4. As a backup, sign up for [Posit Cloud](https://posit.cloud/plans/free)^["Posit" is the company that makes "RStudio", the software we'll use to work with R.] (the free version). It's basically the same thing as RStudio, but accessible via a web browser. If things aren't working on your computer, this is a great backup to quickly get back to working in RStudio.

That's it - you're all set!

0 comments on commit 6244b8d

Please sign in to comment.