Setting quotas in FormR #519
-
Hi everyone, I would like to know whether someone has solved the issue of setting quotas within a run (e.g., the maximum number of participants for a survey or a group). I've seen this previous suggestion, but we have run into the difficulties: https://groups.google.com/g/formr/c/TqmevSK_4lA/m/v5J1Gf4NAwAJ Is it still impossible to access the whole data frame from a survey? (https://groups.google.com/g/formr/c/f2BqbOTQ-PU/m/4QV_qN-BBQAJ). Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I have used quotas in a formr study before. Here is an example google spreadsheet. It works the way that:
Replace the 1000 at the end of each line with the maximum number of participants in that quota group This was one of my first formr studies, so there are some things to be considered:
I hope that helps anyone |
Beta Was this translation helpful? Give feedback.
I have used quotas in a formr study before. Here is an example google spreadsheet.
It works the way that:
people answer a secreening questionaire at the beginning of the run (e.g., age, gender, education)
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,])
use a block item with a show-if condition. Show that block item if…