Millisecond Forums

demographics are saved in a different file

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

By vpillaud - 10/23/2014

Hi,
I've added several personal questions at the end of my experiment (demographics such as sex or age, several open-ended questions, radio-button questions....). The answers to those items are saved in a different file; meaning that I have a raw file where the task's performance is saved and another one where the demos are saved. Ive used a surveypage to display the demographics so it may be due to this. I've tried to integrate the variables' names as a column in the description of the data file to be saved (e.g. sex), as well as referring to variables' names by adding _response and _latency (i.e. sex_response; sex_latency) but this didn't solve anything. It just created empty columns...

Can somebody please indicate me a way to solve this out ?
By Dave - 10/23/2014

That's the intended behavior for <survey> elements: They'll output data to a separate, differently formatted file.

If you want to have everything in a single data file, do not use <survey> elements to run your <surveypage>s. Instead run them via <block> elements' /trials attributes.
By vpillaud - 10/23/2014

y but then it'll only display one question by screen right ? don't want them to browse ten screens for ten quick questions..
By Dave - 10/23/2014

No, that's incorrect. A <surveypage> is a special type of <trial>. You can put as many questions on it as you want and then do

<surveypage a>
/ questions = [1=...; 10=...;]
...
</surveypage>

<surveypage b>
/ questions = [1=...; 10=...;]
...
</surveypage>

<block someblock>
/ trials = [1=a; 2=b; ...]
...
</block>
By vpillaud - 10/23/2014

hm i may be mistaken but when I do

<block someblock>
/ trials = [1=a; 2=b; ...]
...
</block>

It displays one trial per screen, meaning that if trial a is sex and trial b is age, itll display them separately. I dont see any ways to display several trials on a same page using the block function, this is why I came up with using a surveypage.  Am I missing smthg here ?
By Dave - 10/23/2014

a and b *are* <surveypage>s. Each can contain as many questions as you need / want.
By vpillaud - 11/3/2014

yes, so then I have to use a surveypage to present several questions on a same page; there's no way to display several trials within the same block on a same page right ?
By Dave - 11/3/2014

You set up as many <surveypage>s as you need. Each may contain as many questions as you need / want. Then run those pages via the <block>'s /trials attribute just like any other trial.
By vpillaud - 11/3/2014

got it. Thx Dave.