Skip to content

Setting quotas in FormR #519

Answered by chei96
tbortolini asked this question in Q&A
Feb 2, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I have used quotas in a formr study before. Here is an example google spreadsheet.

It works the way that:

  1. people answer a secreening questionaire at the beginning of the run (e.g., age, gender, education)

  2. You use your formr API to access your study data and then calculate the current number of participants in each quota group. I created separate variables for each quota like this:
    formr_connect() #use API to connect to formr
    n_vps <- formr_raw_results("yourstudyname")
    n_vps <- n_vps[complete.cases(n_vps[,c("session","sex","age","education","VARIABLES THAT INDICATE FULL PARTICIPATION")]),]
    nrow(n_vps[n_vps$sex == 1,])

  3. use a block item with a show-if condition. Show that block item if…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tbortolini
Comment options

Answer selected by tbortolini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants