From 6244b8d7dc03dc905e3785110f48e36ca4f778ff Mon Sep 17 00:00:00 2001 From: John Helveston Date: Tue, 13 Jun 2023 13:23:27 -0400 Subject: [PATCH] consolidated practice code into software page --- _quarto.yml | 4 ++-- index.qmd | 32 +++++++++++++++----------------- parts/designing-surveys.qmd | 18 +----------------- parts/estimating-models.qmd | 18 +----------------- parts/fielding-surveys.qmd | 9 ++------- parts/introduction.qmd | 11 ----------- software.qmd | 12 ++++++------ 7 files changed, 27 insertions(+), 77 deletions(-) diff --git a/_quarto.yml b/_quarto.yml index f070efa..74b0b69 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -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 @@ -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" diff --git a/index.qmd b/index.qmd index 0b118f3..cd2af05 100644 --- a/index.qmd +++ b/index.qmd @@ -17,31 +17,29 @@ John Paul Helveston
June 15, 2023
George Washington University ::: -
- ::: {.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. ::: @@ -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. ::: diff --git a/parts/designing-surveys.qmd b/parts/designing-surveys.qmd index 6f792dc..95e4c63 100644 --- a/parts/designing-surveys.qmd +++ b/parts/designing-surveys.qmd @@ -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} @@ -18,11 +17,8 @@ path_notes <- file.path(part, glue::glue("{part}.zip")) **KEYBOARD SHORTCUTS** - Slide navigation: / - - Full screen: f - - Slide overview: o - - Shortcuts: h ::: @@ -47,19 +43,7 @@ path_notes <- file.path(part, glue::glue("{part}.zip")) **RESOURCES** - Documentation - -::: - -::: - -::: {.g-col-3} - -::: {.class-buttons} - -**PRACTICE** - - Zip file + {cbcTools} ::: diff --git a/parts/estimating-models.qmd b/parts/estimating-models.qmd index 972e7b1..55fe91b 100644 --- a/parts/estimating-models.qmd +++ b/parts/estimating-models.qmd @@ -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} @@ -18,11 +17,8 @@ path_notes <- file.path(part, glue::glue("{part}.zip")) **KEYBOARD SHORTCUTS** - Slide navigation: / - - Full screen: f - - Slide overview: o - - Shortcuts: h ::: @@ -47,7 +43,7 @@ path_notes <- file.path(part, glue::glue("{part}.zip")) **RESOURCES** - Documentation + {logitr} JSS Article @@ -55,18 +51,6 @@ path_notes <- file.path(part, glue::glue("{part}.zip")) ::: -::: {.g-col-3} - -::: {.class-buttons} - -**PRACTICE** - - Zip file - -::: - -::: - ::: ```{r lexi-demo, echo=FALSE} diff --git a/parts/fielding-surveys.qmd b/parts/fielding-surveys.qmd index db09cea..a5f0eea 100644 --- a/parts/fielding-surveys.qmd +++ b/parts/fielding-surveys.qmd @@ -18,11 +18,8 @@ path_notes <- file.path(part, glue::glue("{part}.zip")) **KEYBOARD SHORTCUTS** - Slide navigation: / - - Full screen: f - - Slide overview: o - - Shortcuts: h ::: @@ -51,8 +48,6 @@ path_notes <- file.path(part, glue::glue("{part}.zip")) blog post - formr.org - ::: ::: @@ -61,9 +56,9 @@ path_notes <- file.path(part, glue::glue("{part}.zip")) ::: {.class-buttons} -**PRACTICE** +
- Zip file + formr.org ::: diff --git a/parts/introduction.qmd b/parts/introduction.qmd index ae2b429..727098b 100644 --- a/parts/introduction.qmd +++ b/parts/introduction.qmd @@ -17,11 +17,8 @@ path_pdf <- file.path(part, glue::glue("{part}.pdf")) **KEYBOARD SHORTCUTS** - Slide navigation: / - - Full screen: f - - Slide overview: o - - Shortcuts: h ::: @@ -42,14 +39,6 @@ path_pdf <- file.path(part, glue::glue("{part}.pdf")) ::: {.g-col-3} -::: {.class-buttons} - -**RESOURCES** - - Documentation - -::: - ::: ::: diff --git a/software.qmd b/software.qmd index 8625b51..c46adc2 100644 --- a/software.qmd +++ b/software.qmd @@ -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 @@ -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!