Open xueweic opened 6 months ago
@xueweic The likely issue is that z
is not a vector. If it is a matrix something like this should work:
res <- ash(drop(z), rep(1,length(z)))
(Apologies that the error message is not more helpful.)
@pcarbo Thanks Peter, drop(z) solve the issue. z is an matrix-like vector with dimension of P by 1.
Hi there,
Hope everything is well. I met an issue when I run
ash
function with inputz
. Here, z is a P by 1 vector of z-score. Do you have any idea for this error? Thank you.ashr::ash( z, rep(1,length(z)),mixcompdist = "normal" )
ashr::ash( z, rep(1,length(z)) )