You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would require us to check the numer/denom vectors to see if they were numeric or character first, and then pull the names of the groups and their weights from the appropriate.
Option 2
Or vice versa? This way may require less (code) hacking, but I'm not the biggest fan of havig numbers for names() of a vector
You can combine multiple groups in the
numer
ordenom
when constructing a linear model.Currently it gives each group within the
numer
/denom
equal weight, but you may want to adjust that.Using the example tcga dataset, we can compare stage1 and stage2 vs stage3 and stage4 tumors like so:
That would construct a contrast vector that compares the average of stage I and II vs the average of stage III and IV, like so:
But what if you wanted something like this?
Potential Syntax
Option 1
The names of the
numer
/denom
character vectors could be the group names, and the values could be the fractional weights:This would require us to check the
numer
/denom
vectors to see if they were numeric or character first, and then pull the names of the groups and their weights from the appropriate.Option 2
Or vice versa? This way may require less (code) hacking, but I'm not the biggest fan of havig numbers for
names()
of a vectorOption 3
You could imagine having a separate parameter for group weights, but ...
The text was updated successfully, but these errors were encountered: