question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Don't drop NAs by default in _load_time_variables and analysis.setup()

See original GitHub issue

Analysis.setup() drop_na defaults to True (actually, you can trace this back all the way to _load_time_variables in variables.io)

Given that there will be a DropNA transformation (not implemented yet), shouldn’t the default be False?

I need to have it set to False for fitlins (so that NAs can be imputed to the mean on occasion) but @effigies needs to drop nas for his model to run and currently there is no way to do that through the model itself. Unless we were to pass it as a kwargs in the Input section, but that seems hacky.

I suggest drop na should not occur by default, and the user should have to specify this through the BIDS-StatsModel. I would be okay with just reading kwargs from Inputs as a temporary solution though.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:21

github_iconTop GitHub Comments

1reaction
effigiescommented, Dec 17, 2018

Okay. Sorry I’m being a bit slow. Trying to run some stuff. Will get back to testing when I’ve got some results, or the next thing breaks.

1reaction
tyarkonicommented, Dec 15, 2018

I have an updated changelog in a local branch; we can write a short migration guide later. While there are a lot of changes, the vast majority are relevant outside of the layout module, and so far I think we’re probably the only ones actually using anything in Analysis. I think other than renaming entities and maybe changing a few initialization arguments, the update to 0.7 should be fairly minimal for most users.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing Values in R
Missing values are represented in R by the NA symbol. NA is a special value whose properties are different from other values. NA...
Read more >
Pandas dropna() - Drop Null/NA Values from DataFrame
Pandas DataFrame dropna() function is used to remove rows and columns with Null/NaN values. By default, this function returns a new ...
Read more >
How does R handle missing values? | R FAQ - OARC Stats
Missing data in R appears as NA. NA is not a string or a numeric value, but an indicator of missingness. We can...
Read more >
How the 'NA' values are treated in glm in R - Cross Validated
na.fail : returns the object only if it contains no missing values. If you don't set na.action, glm() will check R's ...
Read more >
Remove rows with all or some NAs (missing values) in data ...
When I Am trying this command df %>% drop_na(rnor, cfam) Got an error like this Error: Can't subset columns that don't exist. x...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found