Open dawe opened 4 years ago
You still have to declare a coefficient that you want to test right now you just gave .wald() instructions for fitting a GLM but not which coefficient to test. I guess you want to test the group parameter, you have to define this as a subset of all model parameters using factor_loc_totest or coef_to_test!
I have the very same error if coef_to_test
is specified (btw, factor_loc_totest
is not supported when dmat_loc
is given)
I have the very same error if
coef_to_test
is specified (btw,factor_loc_totest
is not supported whendmat_loc
is given)
can you post the exact code you are using when specifying coef_to_test? for now could just give wald the formula instead of building it yourself first? that makes parsing easier, also the reason via factors are not supported in this mode
Given the design matrix above
dmat_flat = de.utils.design_matrix(data = adata, formula="~0 + groups")
I use the list of coefficients names in the second element of the tuple
de.test.wald(
data = adata,
dmat_loc=dmat_flat[0],
coef_to_test=dmat_flat[1])
or any subset of it
I'm trying to use a design matrix to run a simple test, in place of a formula but I cannot use due to this error:
Note that I'm not sure how to pass a design matrix in place of a formula, I was performing some usage test...