Skip to content

Navigation Menu

Sign in
Sign up

FAQ: What to do with NaNs as predictors #128

Unanswered
behinger asked this question in Q&A
Discussion options

I got the question of what to do with NaNs. This is my answer:

As long as the predictor is not "active" in an event type, it shouldn't matter if it is [] or NaN. The only problem is, if you actually do not know a predictor value.

An example: for whatever reason you do not know a saccade-amplitude for one fixation (thus it is NaN), but generally all fixations are modelled with a saccade amplitude effect e.g. fixation: y~1+sac_amplitude. What should the model use for this fixation as the covariate? In that case, you would need imputation of the amplitude effect, for which there are multiple ways to do in uf_imputeMissing.m .

But if you have another event "button", that one does not need to have a saccade-amplitude e.g. button: 1+condition, then you can put whatever you want.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #120 on November 18, 2021 09:54.

AltStyle によって変換されたページ (->オリジナル) /