zhouhj1994 / LinDA

33 stars 3 forks source link

error when more than two fixed effects #2

Closed agatagawad closed 1 year ago

agatagawad commented 2 years ago

Hi,

I have a concern about using variables in the formula. My formula is ='~Group+Timing+BMI+(1|Subject)', where the first two are factors, and the third one is numeric. I get this message: Error in as.data.frame.default(res.cov[which(rownames(res.cov) == x), : cannot coerce class ‘structure("dgeMatrix", package = "Matrix")’ to a data.frame

The same error if the third variable is factor.

If my formula is ~Group+Timing+(1|Subject)' then no problem.

Many thanks in advance for your help.

Best regards, Agata

zhouhj1994 commented 2 years ago

Hi Agata,

Thanks for your interest in our package. That's a bug in the code and has been fixed. It should work now. Thank you so much for your question!

Please let me know if you have any other questions.

Best, Huijuan

On Tue, May 10, 2022 at 10:10 PM agatagawad @.***> wrote:

Hi,

I have a concern about using variables in the formula. My formula is ='~Group+Timing+BMI+(1|Subject)', where the first two are factors, and the third one is numeric. I get this message: Error in as.data.frame.default(res.cov[which(rownames(res.cov) == x), : cannot coerce class ‘structure("dgeMatrix", package = "Matrix")’ to a data.frame

The same error if the third variable is factor.

If my formula is ~Group+Timing+(1|Subject)' then no problem.

Many thanks in advance for your help.

Best regards, Agata

— Reply to this email directly, view it on GitHub https://github.com/zhouhj1994/LinDA/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALF4E4FT34AFQ4TABE5Y6YTVJJU5PANCNFSM5VRXNR7A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

agatagawad commented 2 years ago

Hi Huijuan,

Thank you very much for fixing the bug! Now everithing works fine.

For the moment I have no questions.

Best regards, Agata


Van: zhouhj1994 @.> Verzonden: zondag 15 mei 2022 15:14 Aan: zhouhj1994/LinDA @.> CC: Agata Gawad @.>; Author @.> Onderwerp: Re: [zhouhj1994/LinDA] error when more than two fixed effects (Issue #2)

Hi Agata,

Thanks for your interest in our package. That's a bug in the code and has been fixed. It should work now. Thank you so much for your question!

Please let me know if you have any other questions.

Best, Huijuan

On Tue, May 10, 2022 at 10:10 PM agatagawad @.***> wrote:

Hi,

I have a concern about using variables in the formula. My formula is ='~Group+Timing+BMI+(1|Subject)', where the first two are factors, and the third one is numeric. I get this message: Error in as.data.frame.default(res.cov[which(rownames(res.cov) == x), : cannot coerce class ‘structure("dgeMatrix", package = "Matrix")’ to a data.frame

The same error if the third variable is factor.

If my formula is ~Group+Timing+(1|Subject)' then no problem.

Many thanks in advance for your help.

Best regards, Agata

— Reply to this email directly, view it on GitHub https://github.com/zhouhj1994/LinDA/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALF4E4FT34AFQ4TABE5Y6YTVJJU5PANCNFSM5VRXNR7A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHubhttps://github.com/zhouhj1994/LinDA/issues/2#issuecomment-1126939257, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKMUOLKVU6Z2FCFAPQ2KWD3VKD2C3ANCNFSM5VRXNR7A. You are receiving this because you authored the thread.Message ID: @.***>