Closed respatte closed 6 years ago
statistic
is actually returned by the_test()
as part of the model object. I wonder if your model isn't running properly, thus not returning a statistic
.
Hi Brock,
Thanks for the explanation, I tried running my model in the same way the_test()
does, and it came up with an error (it's not really relevant but here it is:)
Error: number of observations (=543) <= number of random effects (=1008) for term
(1 + TrialId | Participant); the random-effects parameters and the residual variance
(or scale parameter) are probably unidentifiable
So I changed the specification of my random effects, and now make_time_cluster_data
works fine!
I'm guessing from what I understand of the_test()
that it should have returned the errors in that case, wouldn't it be good if the code then raised an error and printed the errors from the model?
Edit: reading further into the code for analyse_time_bins.time_sequence_data
, I see that the code should indeed raise an error and show what errors came up while running the model. I'm not really sure why this isn't working though...
If you want to reproduce this and check why the errors weren't printed, you can find my project here. If you open stats/InfantsAnalysis.R
, run the first two blocks (LIBRARY IMPORTS
and GATHER DATA
), then change line 93 to be (1 + TrialId | Participant) +
and finally run lines 77-94. I hope this is helpful! :)
Thank you for contributing! At some point in the near future I'd like to significantly refactor that function, so issues like this will (hopefully) get swept up then.
Hi,
I've tried running the following code but got the following error:
This error seems to link to line 433 of
time_sequence_data.R
, wherestatistic
appears out of nowhere, as far as I can tell (functionanalyze_time_bins.time_sequence_data
). I would offer to try and fix that but I'm afraid I'm far from being good enough for that.It's probably not related, but in case it is, I also had a few warnings:
and that second warning repeating up to the 50th printed warning.