stephens999 / ashr

An R package for adaptive shrinkage
GNU General Public License v3.0
79 stars 35 forks source link

ashCI doesn't work when df varies across observations #45

Open stephens999 opened 7 years ago

stephens999 commented 7 years ago

this might be useful to have...

huzefaKhalil commented 6 years ago

ashCI gives an error when ash is run with a vector of dfs, even when the dfs are equal. It gives the error:

Error in t(do.call(lik$lpdfFUN, list(outer(data$x, b, FUN = "-")/data$s)) - : (subscript) logical subscript too long

stephens999 commented 6 years ago

thanks for the bug report. So the work-around for now is to supply a single df when they are all equal. But we should fix this!