diffxpy icon indicating copy to clipboard operation
diffxpy copied to clipboard

de.test.design_matrix(): allow no absortion of first factor level into offset

Open davidsebfischer opened this issue 7 years ago • 3 comments

Relevant for constraint scenarios.

davidsebfischer avatar Oct 02 '18 14:10 davidsebfischer

Requested by @LuckyMD

davidsebfischer avatar Oct 02 '18 14:10 davidsebfischer

Is it just this? dmat_cond = pat.dmatrix("condition", adata.obs, return_type='dataframe') dmat_samp = pat.dmatrix("sample-1", adata.obs, return_type='dataframe') dmat_chip = pat.dmatrix("chip-1", adata.obs, return_type='dataframe') dmat = dmat_cond.join(dmat_samp).join(dmat_chip)

LuckyMD avatar Oct 03 '18 00:10 LuckyMD

Yes @LuckyMD, this is how you would do it in patsy.

davidsebfischer avatar Oct 03 '18 15:10 davidsebfischer