Forum Replies Created
-
AuthorPosts
-
apspj
ParticipantHi, Jeremy!
I created a csv table with a column “group” A, B, C, which are the lists to participants. I tested the demo link with a friend and it seems that we are getting the same list. Does the automatic arrangement of lists for each even-odd participant only works in the experiment link?
Thanks,
Ana.
apspj
ParticipantHi Jeremy,
Never mind, got it! I was downloading the .cvs file in “download file” in “results”. But now I decided to just open and save as “.txt” and it actually worked well with the function read.pcibex. I don’t know why it just worked for me with txt, but maybe it could be a note in the tutorial.
Best,
Ana.
apspj
ParticipantHi Jeremy,
The experiment works really well.
But now, as an exercise, I performed my own experiment around 3 times just to check the results. I followed the steps on https://doc.pcibex.net/how-to-guides/data-transformation/ but I keep getting the following error:
Error in count.fields(filepath, sep = ",", quote = NULL) : 'file' must be a character string or connection
I’ve already verified if Windows somehow changed the comma separated file downloaded from PCIbex is into semicolon but I keep getting this error. And I don’t know if it is something related to the function.
Thank you,
Ana.
apspj
ParticipantThank you very much for your time and patience, Jeremy!
I understand now the issue with the first
Sequence
It works fine. Now I will make the adjustments.Thank you once again,
Ana.
apspj
ParticipantYes, I tried to call it as a
newTrial("experiment",
beforeDashedSentence
or call theSequence("experiment",
But it seems I cannot get through it…Anyway, here goes part of the code: https://farm.pcibex.net/r/AebAtk/
Ana.
apspj
ParticipantThanks a lot for all the help, Jeremy.
The
"experiment"
in the code referred to the Sequence of presentation, which is as follows:
Sequence("TCLE" (consent), "info","instructions", "treino" (trainning),"experiment", SendResults(), "end")
I managed to creat all the parts pre-experiment and they are working really well. The problem is really in the
"experiment"
part, that is why I repeated it withinnewTrial
. I made the changes you suggested and understood whyrow.cond + "-" + row.item
makes no sense in my project. And yes, about dist it was a mistake, because I was changing to fillers in Brazilian Portuguese distratores, which is how it is coded in my table. But I turned it back to English, as fillers. So everything runs very well but it gets"experiment"
does not open at all.//Experiment conditions = [ pick(randomize(startsWith("A")), 1), pick(randomize(startsWith("B")), 1), pick(randomize(startsWith("C")), 1), pick(randomize(startsWith("D")), 1), pick(randomize(startsWith("E")), 1), pick(randomize(startsWith("F")), 1), pick(randomize(startsWith("G")), 1), pick(randomize(startsWith("H")), 1) ] .sort( ()=>Math.random()-0.5) fillers = randomize(startsWith("dist")) Sequence( conditions[0], pick(fillers,1), conditions[1], pick(fillers,1), conditions[2], pick(fillers,1), conditions[3], pick(fillers,1), conditions[4], pick(fillers,1), conditions[5], pick(fillers,1), conditions[6], pick(fillers,1), conditions[7], pick(fillers,1) ) Template("frases_utf_poss.csv", row => newTrial("experiment", newController("DashedSentence", {s: row.sentence}) .css("font-size", "20px") .css("font-family", "Calibri") .center() .print() .print() .log() .wait() .remove() ) )
Ana.
apspj
ParticipantI was not sure either. Getting into this world of programming now…
So this is what I am trying but it does not seem to work (I put 1 item of each just to test):
//Experiment conditions = [ pick(randomize(startsWith("A")), 1), pick(randomize(startsWith("B")), 1), pick(randomize(startsWith("C")), 1), pick(randomize(startsWith("D")), 1), pick(randomize(startsWith("E")), 1), pick(randomize(startsWith("F")), 1), pick(randomize(startsWith("G")), 1), pick(randomize(startsWith("H")), 1) ] .sort( ()=>Math.random()-0.5) fillers = randomize(startsWith("dist")) Sequence( conditions[0], pick(dist, 1), conditions[1], pick(fillers, 1), conditions[2], pick(fillers, 1), conditions[3], pick(fillers, 1), conditions[4], pick(fillers, 1), conditions[5], pick(fillers, 1), conditions[6], pick(fillers, 1), conditions[7], pick(fillers,1) ) Template("myTable.csv", row => newTrial("experiment", row.cond + "-" + row.item, newController("DashedSentence", {s: row.sentence} .css("font-size", "20px") .css("font-family", "Calibri") .center() .print() .print() .log() .wait() .remove() ) ) )
apspj
ParticipantOk, so within a dashed sentence experiment I would have something like this?:
Template("myTable.csv", variable => newTrial("experiment", newController("DashedSentence", {s: conditions = [ pick(randomize(startsWith("A-")), 2), pick(randomize(startsWith("B-")), 2), // etc. ] .sort( ()=>Math.random()-0.5 ) // shuffle })
apspj
ParticipantThanks, Jeremy!
1 – “If I understand you correctly, your cond column will go from A through H (8 conditions) with 4 rows for each letter (4 items).”
Yes!2 – “What I’m not clear about are your fillers: does your cond column go from filler-1 through filler-5 (5 types of fillers), with 4 rows for each one again (as hinted at by the repeated “1” in your example)?”
Just to clarify I have 5 types of fillers with 8 in each type (the items for fillers are all different and do not repeat as in the experimental items). So I have 40 fillers in total to distribute.Great! I will try the code (I am happy I could understand the code lol). But, anyway, would it assure that the items (experimental and fillers) are randomly selected for each participant?
Thanks,
Ana.
apspj
ParticipantHi,
I’m very new to PCIbex and so far I have managed well but got stuck in randomizing.
I have 8 conditions and 4 items manipulated according to each condition + 5 types of fillers:
cond item sentence
A 1 …
A 2 …
A 3 …
A 4
B 1
B 1
B 2
B 3
B 4
…
filler-1 1
…I would like each participant to randomly see 2 experimental items of each condition and 2 fillers in the following sequence: 1 exp item + 2 fillers, 1 exp item + 2 fillers… I wonder if I could create a subset like this that would also be randomized among participants.
Thank you,
Ana.
-
AuthorPosts