Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add function for testing nested hypotheses over an edgeR GLM fit #23

Open
russHyde opened this issue Jan 24, 2019 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@russHyde
Copy link
Owner

For example,

nested_lrt <- function(fit, contrasts, contrast_tree, p_thresholds, ...)
@russHyde
Copy link
Owner Author

russHyde commented Jan 24, 2019

How to define the nested sets of contrasts?

# set_hierarchy
contrast_set | parent | p_threshold |
----------------------------
all | NULL
subset1 | all
subset2 | all
subset3 | subset1
subset4 | subset2

# set_contents
contrast_set | contrast
------------------------------
all            | c1
all            | c2
all            | c3
subset1        | c1
subset1        | c2
subset2        | c3
subset3        | c1
subset4        | c2

Or

L <- list(start_node, all_contrasts, subset1, subset2, subset3, subset4)
# where each of the entries is a list:
contrast_node <- list(parent, tree_level, contrasts, p_threshold, lrt, significant_features)

Or use data.tree - but I don't think it makes the process any easier than just iterating over a level-sorted list.

@russHyde russHyde added the enhancement New feature or request label Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant