Millisecond Forums

Survey

https://forums.millisecond.com/Topic1758.aspx

By buttons - 8/3/2008

    I'm currently designing a survey with 16 radio button questions. Each of these questions is multi choice with five possiable answers. I have two questions regarding this ....

1) How do i assign a value to each answer (e.g. so if the subject clicks on the first answer that will be recorded as 1 etc...)

2) At the end of the survey is it possable to give participants different feedback bases on their average score across all questions (e.g. if they score on average 3 or more points they will get feedback X and if they score less than three point they will get feedback Z). If so, how?

Any help much appreciated!


By Dave - 8/3/2008

Hi there,

(1) Assigning values to the response options is done via the '/optionvalues' attribute as in

<radiobuttons example>
/ caption="Do you know what I'm talking about?"
/ options=("Yes", "No", "Maybe")
/ optionvalues=("1", "2", "3")
</radiobuttons>

(2) Yes, this is possible. You will have to use the <values> element and some 'expressions' to keep track of the participants' scores and then assign the appropriate feedback with some 'if...' statements. For starters, you should read through those topics in the Inquisit help-file. I also recommend you to take a look at the Single-Target-IAT script available from the samples page as a very good example of how this can be done.

Best,
~Dave

P.S.: I've attached a very simplistic script that demonstrates the tracking and scoring of values in a survey. It has 4 <radiobuttons> elements with each 5 response options on a single page. The achieved average score is reported on the second page. This might give you a more concrete idea of how to get what you want.
By Benja - 8/25/2008

Hi,


I have a similar question, sort of, and I'm having the devil's own time figuring how to go about doing it.  Here's what I want to do:


I have 21 items, questions really, on media usage.  In the instructions I'm asking respondents to indicate "how often you've used a particular news, information, or entertainment source in the previous 7 days."


For each item there are the same options. 5. Used 5 or more times in previous 7 days; 4. Used 3 or 4 times in the previous 7 days; 3. Used 1 or 2 times in the previous 7 days; 2. Have used service in the past, but in the last 7 days; 1. Have never used. 0. Don't know.


In a regular web survey, I would use something like a grid, with the items running down the side, the options running across the top, and radiobuttons next to each item.  This way, respondents don't have go through numerous pages.


At the the end of the survey respondents will go to a PictureIAT task.


I've been going through the documentation trying to figure this out but for someone with limited programming experience, it's a little daunting.


All help gratefully received,


Ben

By Dave - 8/25/2008

Hey Ben,

although I'm having a hard time finding the similarities between the original question raised in this thread and yours, I'll do my best to help you... ;-)

Inquisit doesn't have any kind of matrix-type question layout, but with some not so pretty trickery you can mimick the page layout you're looking for in Inquisit.

I've attached a small file containing a single surveypage with three questions to show you one way to get what you want.

Hope this helps,
~Dave
By Benja - 8/25/2008

I guess to a non-programmer like myself, layout is layout, radiobuttons are radiobuttons, and so on.  Due apologies if the question went on the wrong thread.


The file attached does the job wonderfully (looks pretty to me, again, a non-programmer).  Much appreciated.  Gracias, danke, thanks.


Ben

By Dave - 8/25/2008

No need to apologise, Ben. The remark was solely meant to be humorous... I hope the script I attached to my previous post is self-explanatory enough. If you continue to have questions, come back and post them - either here or in a new thread.

Best,
~Dave
By Benja - 8/28/2008

Hey Dave,


Might as well keep these questions in the original thread. 


The file you attached works fantastically well as long as the response labels across the top are 1 letter wide.  The challenge here is to have labels such as "5 or more times in the previous 7 days" ; "Used 3 or 4 times in the previous 7 days"; and so on... and have each of these wordwrap in a square that's about 8 spaces wide, while keeping all of them together across the top.


I figured out how to make the rest of the questionnaire line up, no problems there.  But I can't get the captions to work.


preciate the help,


Ben


PS. I'm attaching the script file (which you wrote, little or no mods there), and a MS Word file that has all 21 questions in a Matrix format.  Obviously I wouldn't want to have all 21 on a single screen, only 5 - 7 but I'm sure I can handle that. 

By Dave - 8/28/2008

Any chance you could attach your script to this thread (instructions here)? That would make things easier to troubleshoot...

Best,
~Dave
By Benja - 8/28/2008

... and the script file.  Since apparently I'm can't attach two files to the same post.

By Dave - 8/28/2008

As I said, it's not pretty. I've attached a revised version - it all comes down to using a seperate <caption> element for each response option and then fiddling around with their screen positions until it's looking about right.

~Dave
By Benja - 8/28/2008

Maybe it's not elegant, but it does the job.  I'll take it gladly!


Gracias, thanks, viehlen dank, grazie mille... and so on.

By buttons - 8/28/2008

Hi again,

Im still strugling with how to do branching in a survey! (i've never done scripts before and my brain just doesn't work that way apartently!) Was wondering if anyone has a e.g. of a survey script that contains branching?

thanks muchly

By Dave - 8/28/2008

See the attached file for an example based on the demographics sample included with Inquisit. In this survey, participants are directed to different follow-up pages (i.e. branching) based on a previous response expressing their political views. You can do the same thing based on any custom <values> element used to track participants' scores throughout the survey (see previous posts).

Hope this helps,
~Dave
By Pete R - 10/10/2008

I nested "survey page" elements into "block" elements which are nested in an "experiment".  I do not use the "survey" element at all. 


So, my survey is now technically an experiment, correct?  This means the way the data is written to file is different, correct? 


What element should I use to choose and arrange the responses that are written to file?  Or, should I?


Thanks


By Dave - 10/10/2008

I nested "survey page" elements into "block" elements which are nested in an "experiment".  I do not use the "survey" element at all. So, my survey is now technically an experiment, correct?


In Inquisit's terminology your survey is an experiment. Correct.

This means the way the data is written to file is different, correct?


Correct. The <survey> element writes datafiles containing a single line per subject. The <expt> / <block> element writes datafiles containing multiple lines per subject.

What element should I use to choose and arrange the responses that are written to file? Or, should I?


Currently, data output for the <survey> element cannot be customised. As you are using the <expt> / <block> element instead, you can (re-)arrange data output via the <data> element. Do you really need this? Depends on what you're looking for... I'd recommend generating some test data (for example using Inquisit's built-in <monkey>) using Inquisit's default data recording scheme (i.e. without specifying a <data> element first). Then look at the output files, decide what -  if anything - needs to be rearranged and specify an appropriate <data> element.

Thanks


You're welcome.

~Dave

By Pete R - 10/10/2008

Great, thanks. I really appreciate it.


Happy Thanksgiving from Canada


By kaiter - 11/28/2013

I realise this post is years old, but I'm having a similar problem -
I've set out a matrix-style questionnaire with radio buttons (the script
may not be pretty, but the outcome looks good :P). I have a series of questions on
multiple pages, but I've copied some of my code below so you can see
what I've done. You have to answer each item before continuing to the
next page.


My question is whether it's possible to highlight a
question that has not been responded to so the people completing it can
clearly and easily see which item they've missed?


I realise that "/required = true" usually does this (changes the
font colour of a missed question from default black to red), but because
I have the question and radio button response in separate bits of code
(to get the page alignment clear/how I want it) it isn't making the
connection. Will I need to change this so the question/item is the
caption in the radiobutton part of the script? If so, is it possible to
get the page alignment as I have it at the moment?


I've been playing around with this for a couple of days and can't work out a way to overcome this particular issue!


<caption values>

/ caption = "Not at all                           Extremely"

/subcaption = "1          2          3          4          5          6          7"

/ position = (45, 16)

</caption>



<caption item1>

/ caption = "Are you understanding the question?"

/ position = (10, 20)

</caption>



<radiobuttons response1>

/ options = ("         ", "         ", "          ", "         ", "         ", "         ","        ")

/ optionvalues =  = ("1", "2", "3", "4", "5", "6","7")

/orientation = horizontal

/ position = (45, 20)

/required = true

</radiobuttons>

By Dave - 11/28/2013

My question is whether it's possible to highlight a
question that has not been responded to so the people completing it can
clearly and easily see which item they've missed?


No, in this particular case there is no straightforward way to do this.