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

Multiple variables, single coefficient #163

Closed
kanefos opened this issue Jul 20, 2021 · 2 comments
Closed

Multiple variables, single coefficient #163

kanefos opened this issue Jul 20, 2021 · 2 comments

Comments

@kanefos
Copy link

kanefos commented Jul 20, 2021

Hi there authors,
Firstly big fan of MAST, really nice tool.

I am working with 3 categorical time point (TP) conditions: TP1, TP2 and TP3. I am looking for changes in expression across all three timepoints. Namely, H0: the 3 timepoints are identical vs. H1: there is a difference between them. I am essentially trying to replicate what is described here.

Having fit the model zlmCond using zlm() with TP1 as the reference variable, I then try to extract data thusly:

  • lrTest(zlmCond, Hypothesis("conditionTP2+conditionTP3")) yields the hurdle P-value
  • summary(zlmCond, logLik=Hypothesis("conditionTP2+conditionTP3"))$datatable yields the coefficients for conditions TP2 and TP3.

How do I extract a single coefficient for TP2 and TP3 versus TP1 to match the P-value?

I think this is mostly a question about how to extract from the LMlike class so I haven't included more code but I can if needed.

Many thanks,
Kane

@amcdavid
Copy link
Member

amcdavid commented Jul 20, 2021 via email

@kanefos
Copy link
Author

kanefos commented Jul 20, 2021

Hi Andrew - that's perfect, thank you. I feel like I have a basic understand of models now but getting it into R is still tricky. Thanks again

@kanefos kanefos closed this as completed Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants