class: middle, inverse .leftcol30[ <center> <img src="https://madd.seas.gwu.edu/images/logo.png" width=250> </center> ] .rightcol70[ # Week 4: .fancy[Intro to formr] ###
EMSE 6035: Marketing Analytics for Design Decisions ###
John Paul Helveston ###
September 20, 2023 ] --- class: inverse, middle # .center[**Reminders**] # Proposals due Sunday, 9/24 by midnight -- <br> # Next week project workshop:<br>team meetings & proposal feedback --- class: inverse, middle # Week 4: .fancy[Intro to formr] ### 1. Surveys in R ### 2. Surveys in formr ### BREAK ### 3. Conjoint survey components --- class: inverse, middle # Week 4: .fancy[Intro to formr] ### 1. .orange[Surveys in R] ### 2. Surveys in formr ### BREAK ### 3. Conjoint survey components --- class: center, middle # Start in RMarkdown ## See `demoSurvey.qmd` --- # Some Guidelines - Use `---` to indicate new pages (this inserts a horizontal line) -- - Be sure that any data / images are hosted somewhere on the web -- - Consider each new page a **New R Session** (reload libraries, etc.) --- # Embedding images I recommend just writing html code, like this ```html <img src="https://raw.githubusercontent.com/emse-madd-gwu/2022-Fall/main/images/logo.png" width=250> ``` <img src="https://raw.githubusercontent.com/emse-madd-gwu/2022-Fall/main/images/logo.png" width=250> --- # Centered image I recommend just writing html code, like this ```html <center> <img src="https://raw.githubusercontent.com/emse-madd-gwu/2022-Fall/main/images/logo.png" width=250> </center> ``` <center> <img src="https://raw.githubusercontent.com/emse-madd-gwu/2022-Fall/main/images/logo.png" width=250> </center> --- # Check your urls carefully! <br> This is the link to the Github page with the class logo image: https://github.com/emse-madd-gwu/2022-Fall/blob/main/images/logo.png This is the link to the actual image: https://raw.githubusercontent.com/emse-madd-gwu/2022-Fall/main/images/logo.png --- class: inverse
−
+
15
:
00
## Your turn - Open and edit the `practiceSurvey.qmd` file. - Pick a topic for your survey (a food, an animal, a sports team...whatever). - Draft a survey about that topic. Include the following: - Page 1: A welcome message in large font ("Welcome to a survey about [topic]") and an image about the topic (find an image somewhere). - Page 2: Once simple multiple choice question about the topic (state the question and write the choice responses as bullets). - Page 3: Choose a data set from [this page](https://github.com/emse-eda-gwu/2022-Fall/tree/master/data) (pick a .csv file). Get the url to the .csv file you chose, read it in, and display only the first 6 rows of the data file (do not show any code - only the output of your code). - Page 4: Show the last 6 rows of the same data file (again, only the output - hide all code). --- class: inverse, middle # Week 4: .fancy[Intro to formr] ### 1. Surveys in R ### 2. .orange[Surveys in formr] ### BREAK ### 3. Conjoint survey components --- # formr principles <br> ## - Use _RMarkdown / html_ to create survey elements ## - Define surveys in _Google Sheets_ ## - Import Google Sheets into formr _surveys_ ## - Link surveys together in formr _runs_ --- class: middle, center # [Demo survey](https://docs.google.com/spreadsheets/d/13jSdlIDFRVsIHbiObgyZlPTGovIcB-xDQ0dkhL75fZQ/edit?usp=sharing) --- # .center[formr row types [(more here)](https://formr.org/documentation#available_items)] Type | Description -----|--------------------- `note` | Display content in `label` column `submit` | Next page button `mc` | Multiple choice question (single choice) `mc_multiple` | Multiple choice question (multiple choices) `mc_button` | Multiple choice question (large buttons) `select_one` | Drop down menu (choose one) `text` | Open text, single row `textarea` | Open text, block --- # Two ways to define choice options .leftcol[ Add "choice" columns <center> <img src="images/choices.png" width=100%> </center> ] -- .rightcol[ Use `choices` tab<br>(when you have a lot of choices) Example: "Year of birth" in [randomImagesDemo](https://docs.google.com/spreadsheets/d/1hs551J6PYJNxc4sftmJyUqj6XYGYFVnN_5faQBWY7cs/edit?usp=sharing) ] --- class: center, middle # Control the way things look in `class` column # ([options here](https://formr.org/documentation#sample_survey_sheet)) --- class: center # Importing survey into formr ### formr.org --> Admin --> Surveys --> Create new survey ### (Make sure your Google Sheet is visible!) <center> <img src="images/gsheetlink.png" width=600> </center> --- class: center # Make a run ## formr.org --> Admin --> Runs --> Create new run -- <br> # Insert survey with
-- <br> # Insert stop with
--- class: center ## Change order by adjusting numbers & clicking "Reorder" <center> <img src="images/order.png" width=500> </center> --- class: center, middle # Make it "live" with the volume buttons <center> <img src="images/publicness.png" width=1000> </center> --- class: center # Fine tune look & feel in "Settings" --- class: inverse
−
+
15
:
00
## Your turn - Using your GW Google drive, create a new survey spreadsheet<br>(you may wish to copy-paste from [this one](https://docs.google.com/spreadsheets/d/13jSdlIDFRVsIHbiObgyZlPTGovIcB-xDQ0dkhL75fZQ/edit?usp=sharing)) - Name your sheet "`[netID]_practice`", replacing "`[netID]`" with your GW Net ID<br>(e.g. "`jph_practice`") - Insert the content in your `practiceSurvey.qmd` file into your Google Sheet. - Using the class formr account, import your Google Sheet as a survey in formr (use the same "`[netID]_practice`" name for your survey). - Create a run that includes your survey and a stop. - Test it! --- class: inverse, center # .fancy[Break]
−
+
05
:
00
--- class: inverse, middle # Week 4: .fancy[Intro to formr] ### 1. Surveys in R ### 2. Surveys in formr ### BREAK ### 3. .orange[Conjoint survey components] --- # 3 Parts <br> - ### **Part 1**: Intro - ### **Part 2**: Conjoint questions - ### **Part 3**: Other / demographic questions --- # 3 Parts <br> - ### **Part 1**: Intro --> .red[screen for target population] - ### **Part 2**: Conjoint questions --> .red[screen for random answers] - ### **Part 3**: Other / demographic questions --- # .center[Think of your survey as a _conversation_] <br> - Include "transition" pages (e.g. Great job! Now we'll ask you about...) --- class: middle, center, inverse # **Part 1**: Intro --- class: center # Start with a welcome page <center> <img src="images/1welcome page.png" width=800> </center> --- class: center, middle .leftcol30[ # Consent form ] .rightcol70[ <center> <img src="images/2consent.png" width=500> </center> ] --- class: center ## **Eligibility questions**: who is your target population? ### .red[_Filter out respondents here_] <center> <img src="images/3filter.png" width=700> </center> --- class: middle, center, inverse # **Part 2**: Conjoint questions --- class: middle, center # Education information <center> <img src="images/5education1.png" width=700> </center> --- class: center # Education information .leftcol[ <center> <img src="images/5education2.png"> </center> ] .rightcol[ <center> <img src="images/5education3.png"> </center> ] --- ## .center[Can be helpful to provide relative comparisons] Weight: - 1/2 lbs (similar to 1 cup water) - 8 lbs (similar to 1 gallon of milk) --- class: center # Conjoint intro <center> <img src="images/6conjoint_intro1.png" width=800> </center> --- class: center ## Practice conjoint (also attention check) ### .red[_May also filter out respondents here_] <center> <img src="images/7conjoint_practice.png" width=550> </center> --- class: center # Transition to actual conjoint questions <center> <img src="images/8conjoint_intro2.png" width=700> </center> --- class: middle .leftcol40[ # Conjoint questions ### .red[_May also filter out respondents at the end_] (e.g. chose all same answers) ] .rightcol60[ <center> <img src="images/9conjoint.png" width=600> </center> ] --- class: middle, center, inverse # **Part 3**: Other / demographic questions --- class: center # Transition <center> <img src="images/10wrap_up.png" width=700> </center> --- class: center # Critical respondent information <center> <img src="images/4critical_info.png" width=900> </center> --- class: center # Demographic / other questions <center> <img src="images/11demo.png" width=500> </center> --- class: center # Finale <center> <img src="images/12end.png" width=900> </center> --- class: inverse, center, middle # [Blog post on conjoint in formr](https://www.jhelvy.com/posts/2021-09-18-choice-based-conjoint-surveys-in-r-with-formr/) -- # [Project survey plan](https://madd.seas.gwu.edu/2023-Fall/project/2-survey-plan.html) -- # Sign up for meeting slot next week<br>(link in #project channel)