suphasiree

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • in reply to: including attention checks and break #10996
    suphasiree
    Participant

    Hi Jeremy,

    Never mind, I’ve figured it out! I didn’t realize that rshuffle() creates evenly spaced trials, which is not what I wanted. It worked when I used the randomize() function and embedded the seq() function to specify the two trial types (filler and critical).

    • This reply was modified 3 months ago by suphasiree.
    in reply to: including attention checks and break #10994
    suphasiree
    Participant

    Hi Jeremy!

    My experiment is a lexical decision task containing 61 experimental items and 61 fillers. There are 4 groups of experimental items; each participant would see one of these four sets, plus the fillers (same fillers across all groups).

    I’ve divided the total 122 items into 3 parts, so that participants can take a break twice during the experiment. I’ve used the pick() function that you described above and the rshuffle() function to achieve this.

    Here is the code I’m working with:
    critical = randomize(“main.trial”)
    fillers = randomize(“filler.trial”)

    Sequence( rshuffle(pick(critical, 20),
    pick(fillers, 20)
    ),
    “break_1”,
    rshuffle(pick(critical, 20),
    pick(fillers, 20)
    ),
    “break_2”,
    rshuffle(pick(critical, 21),
    pick(fillers, 21)
    ),
    “send” , “goodbye”
    );

    This is what I want to create:
    Part 1
    – Randomly pick 20 experimental items and 20 fillers, mix them together and present them in random order
    Break1
    Part 2
    – Randomly pick 20 more experimental items and 20 more fillers, mix them together and present them in random order
    Break2
    Part 3
    – Pick the remaining 21 experimental items and the 21 fillers, mix them together and present them in random order

    As described above, I want the experimental items and the fillers to be randomly shuffled together. However, right now they are evenly presented like this: experimental, filler, experimental, filler, experimental, filler …

    How can I fix the code so that the experimental items and filler items are randomly mixed together? I tried using randomize() instead of rshuffle(), but that did not work either.

    Thanks so much for your time.

    in reply to: Recording keypress with a timer #6537
    suphasiree
    Participant

    Hi Jeremy,

    That worked perfectly, thank you for your help!

    in reply to: Experiment appears left-aligned on screen #6506
    suphasiree
    Participant

    Thanks so much for your help Jeremy, that worked perfectly!

    in reply to: Experiment appears left-aligned on screen #6498
    suphasiree
    Participant

    Hi Jeremy,

    Thanks for your reply! If I want to reproduce the original experiment’s look, i.e., a container centered on the page but with the text left-aligned inside it, is there still a way to achieve this?

    I’ve tried looking at the global_main.css file and inspecting my experiment page, but I couldn’t figure out which element I should change to have the container be centered like before.

    in reply to: Issue uploading files to PC Ibex #6493
    suphasiree
    Participant

    Hi Jeremy,

    Thanks so much for your prompt response, I’m able to upload the files now!

    Best,
    Nene

    in reply to: Issue uploading files to PC Ibex #6490
    suphasiree
    Participant

    Hi Jeremy,

    Apologies for the late reply! I am trying to use an old experiment shell (downloaded as a zip), so I’ve been trying to upload the different files (.csv data tables, .js for the main experiment, etc). Any upload attempt gives me the same error message.

    Do you know why that might be?

    • This reply was modified 3 years, 4 months ago by suphasiree.
    in reply to: Logging the participant ID #5206
    suphasiree
    Participant

    Hello Jeremy, thank you for your fast response, I will give it a try!

    in reply to: Automatic credit granting, and group assignment #5177
    suphasiree
    Participant

    Hi Jeremy, now the redirect link works as intended! Thank you again for all your help, I really appreciate it!

    in reply to: Automatic credit granting, and group assignment #5170
    suphasiree
    Participant

    Hi Jeremy, I just tested it out as a fake participant and the Participant ID part of the redirect URL works.

    However, the redirect link did not contain the set variables for experiment_id and credit_token, for some reason. They were just blank. I am not sure why the variables were not populated in the redirect link?

    Example of the generated redirect link (with missing experiment ID and credit token value): https://ucdavis.sona-systems.com/webstudy_credit.aspx?experiment_id=&credit_token=&survey_code=12345

    Is there a particular place where I should paste the check value / set variable code ? I had pasted it right after PennController.ResetPrefix(null);

    This is the code I am working on (using real values for experimentID and credittoken):

    PennController.ResetPrefix(null);
    
    experimentID = "";
    switch (GetURLParameter("withsquare")) {
      case 0:
        experimentID = "blah1";
        break;
      case 1:
        experimentID = "blah2";
        break;
      case 2:
        experimentID = "blah3";
        break;
      case 3:
        experimentID = "blah4";
        break;
    }
    
    credittoken = "";
    switch (GetURLParameter("withsquare")) {
      case 0:
        credittoken = "hellothere";
        break;
      case 1:
        credittoken = "byenow";
        break;
      case 2:
        credittoken = "salutsalut";
        break;
      case 3:
        credittoken = "bonbahaplus";
        break;
    }
    
    // ...
    
    newText('<p><a href="https://ucdavis.sona-systems.com/webstudy_credit.aspx?experiment_id='+experimentID+'&credit_token='+credittoken+'&survey_code='+PennController.GetURLParameter('id')+'">Click here to confirm my submission on SONA</a>.</p>')
    • This reply was modified 4 years ago by suphasiree.
    • This reply was modified 4 years ago by suphasiree.
    in reply to: Automatic credit granting, and group assignment #5167
    suphasiree
    Participant

    Jeremy, is there a difference in how the double quote (“) and single quote (‘) should be used in that last part of your code?

    (I want to make sure I edit the code correctly!)

    in reply to: Automatic credit granting, and group assignment #5166
    suphasiree
    Participant

    Thank you so much, that helps a lot! I will use that example code to set separate values for the Experiment ID and the Credit token for each experiment/list!

    in reply to: Force response? #5053
    suphasiree
    Participant

    To add to that: I can also see timestamps for “Header” in each trial… is that relevant?

    in reply to: Force response? #5052
    suphasiree
    Participant

    Hi Jeremy!

    I am trying to figure out how to get my Reaction Time data. I’d like to measure the time it takes participants to respond to the question (from the start of the “Question” page of the trial to the onset of the first letter typed).

    I see in the results file that there is a “First” timestamp on each TextInput, and I know I need to subtract that number from the time the Question is shown.

    I think the results file has the timestamp of when the whole trial started (when the sentence is shown), but is there a way to get the timestamp of when participants first see the question ?

    in reply to: Force response? #5048
    suphasiree
    Participant

    Thank you Jeremy, I did get it to work!!

Viewing 15 posts - 1 through 15 (of 20 total)