Skip to content

[ENH] explicitly exclude subjects with NA data before starting to run ModelArray.lm() or .gam() #42

@zhao-cy

Description

@zhao-cy

If a column in phenotypes is used in (full) formula, exclude subjects with NA.

This is to avoid full model and reduced model would include different list of subjects, which will cause inaccuracy in calculated changed.rsq. Suggested by Bart. See slack message with him on/around 1/31/22.

Currently, please avoid requesting calculation of changed.rsq (i.e., by requesting changed.rsq.term.index) for terms that have missing values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions