Don't drop NAs by default in _load_time_variables and analysis.setup()
See original GitHub issueAnalysis.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:
- Created 5 years ago
- Comments:21
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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 inAnalysis
. 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.