Reorganize preprocessing; use pair as random factor
First draft of slight reorganization of preprocessing Adding square of wrdlen to fixed effects; there is some link to literature First draft of using pair as random factor
The way I would calculate age of participant at the time of first test is
function age_at_test(DOB, S1start)
(byr, bmo, bday) = yearmonthday(DOB)
(syr, smo, sday) = yearmonthday(S1start)
ydiff = syr - byr
((smo < bmo) || (smo == bmo && sday < bday)) && return ydiff - 1
return ydiff
end
transform!(elpldtsubj, [:DOB, :S1start] => ByRow(age_at_test) => :age)
@kliegl I have a suggested change for computing age_at_event and the :age column for the subjects. Is it okay for me to commit directly to this branch or would you prefer me to create a branch from this branch and commit there?
@kliegl You have a note after the discussion of the elpldtitem table on word frequencies, etc. The reason they are not included here is because they are only defined for words. We could determine the value for the word and assign it to both the word and non-word in a pair.
@kliegl You have a note after the discussion of the
elpldtitemtable on word frequencies, etc. The reason they are not included here is because they are only defined for words. We could determine the value for the word and assign it to both the word and non-word in a pair.
Yes, I agree.