Problem with huge list
James Keidel
keidel at gmail.com
Thu Mar 6 18:18:23 UTC 2008
this will have to be done in pseudocode because I have totally
forgotten eprime syntax and am not on a win machine at the moment:
Dim Probe (9) As Integer
for i from 0 to 9
Digits(i) = i
end for
for i from 1 to numberOfRows
RandomizeArray Digits
for i from 0 to 4
List1.setAtrrib(row num, digit_i%, Digits(i%))
endfor
' now if it is a trial where the target is in the nums presented
if (something)
List1.setAtrrib(row num, , Digits(i% + 1))
else
pick a random # from 0-4, assign it to some int r%
List1.setAtrrib(row num, , Digits(%r))
end if
end for
hope that helps
look in the e-basic manual for the syntax for setting an attribute in
a list. oh, and also, you should add the rows to your list in the
script as well-- do that with a for loop from 2 to the number of Rows
(since row 1 already exists) then fill up those rows with the above
script and you're off. the way to add rows will also be on the
e-basic manual page for the List Object.
JK
>
> how do you " set the probe digit to one of the digits from the first five,
> the other half you take the 6th entry in the randomized array and make that
> the probe" ?
>
> Could you provide an example?
>
> I appreciate your response!
>
> Best
>
> N
>
>
>
>
> On Thu, Mar 6, 2008 at 1:48 PM, James Keidel <keidel at gmail.com> wrote:
>
>
> >
> > hi NIkos
> >
> > yes, indeed there should be an easier way to do this with an inline.
> > to get you started, basically your list only needs one row I think,
> > with attributes in place of values as you have in your email.
> >
> > you then have a script which creates an array of integers, 0-9. you
> > then call RandomizeArray and take the first 5 entries from the
> > randomized version. half the time you set the probe digit to one of
> > the digits from the first five, the other half you take the 6th entry
> > in the randomized array and make that the probe. One drawback here is
> > that there is no guarantee you won't have a duplicate trial in there,
> > but if that is a concern you can generate all the trials before
> > starting then run through them in a script to ensure there are no
> > duplicates. I think it is extremely unlikely this would happen
> > though.
> >
> > hope this helps you get started; feel free to email me if you get stuck at
> all.
> >
> > best
> >
> > JK
> >
> >
> >
> >
> > On Thu, Mar 6, 2008 at 1:14 PM, Nikos Konstantinou
> > <nkonstantinou at gmail.com> wrote:
> > > Dear E-prime group,
> > >
> > > I 'd appreciate any help on this issue:
> > >
> > > I created an experiment which has two tasks. Task 1: participants hear
> over
> > > the headphones either two or six digits which they have to remember
> until
> > > the end of the trial. At the end of the trial, they see a single probe
> digit
> > > (visual this time) on the screen, which matches one of digits they heard
> at
> > > the beggining of the trial 50% of the times.
> > >
> > > One way of doing it is something like this:
> > >
> > > Weight Digit1 Digit2 Digit3 Digit4 Digit5 Digit6
> > > ProbeDigit
> > > 1 [Digit:0] [Digit:1] [Digit:2] [Digit:3] [Digit:4] [Digit:5]
> > > [ProbeDigit:0]
> > > 1 [Digit:0] [Digit:1] [Digit:2] [Digit:3] [Digit:4] [Digit:5]
> > > [ProbeDigit:1]
> > > 1 [Digit:0] [Digit:1] [Digit:2] [Digit:3] [Digit:4] [Digit:5]
> > > [ProbeDigit:2]
> > > 1 [Digit:0] [Digit:1] [Digit:2] [Digit:3] [Digit:4] [Digit:5]
> > > [ProbeDigit:3]
> > > 1 [Digit:0] [Digit:1] [Digit:2] [Digit:3] [Digit:4] [Digit:5]
> > > [ProbeDigit:4]
> > > 1 [Digit:0] [Digit:1] [Digit:2] [Digit:3] [Digit:4] [Digit:5]
> > > [ProbeDigit:5]
> > > 6 [Digit:0] [Digit:1] [Digit:2] [Digit:3] [Digit:4] [Digit:5]
> > > [ProbeDigit:6]
> > >
> > > A problem with this solution is that it results in a huge list of rows,
> one
> > > for every possible compination.
> > > Although the experiment is working this way, I believe there is an
> easier
> > > and "smarter" way of doing this. Maybe using and InLine?
> > >
> > > Anybody can help?
> > >
> > > Thanks in advance,
> > >
> > > Nikos
> > > >
> > >
> >
> >
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com
To unsubscribe from this group, send email to e-prime-unsubscribe at googlegroups.com
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en
-~----------~----~----~----~------~----~------~--~---
More information about the Eprime
mailing list