CCA with random effects model
0
0
Entering edit mode
18 days ago
leranwangcs ▴ 120

Hi,

I'm trying to fit a CCA model with random effect, the formula should look like this:

~ A + B + C + (1|patient_ID)

But I cannot find any package support this. So far I have tried CCA(), capscale(), but it neither of the seems recognizing the formula with random effect.

So anyone knows what how to do this?

Thanks!

CCA • 247 views
ADD COMMENT
1
Entering edit mode

You may get (more) answers by positing on https://stats.stackexchange.com/. If you do make sure you mention here and there that you are cross-posting. Also, a bit of background of what you are trying to do would probably help.

ADD REPLY
0
Entering edit mode

What is a CCA model with random effects?

ADD REPLY
0
Entering edit mode

for example, without a random effect, the formula for a cca (Constrained Correspondence Analysis) model could be:

cca(y ~ x + z + k, data = df),

but if some samples are provided by same patients, I want to use the patient ID as the random effect to adjust for the grouped samples.

cca(y ~ x + z + k + (1|patient_ID), data = df)

In other models like mixed linear model, it allows for adding this random effect, but it seems cca() doesn't allow this.

If anyone knows any packages allows doing cca model with a random effect that would be great.

ADD REPLY

Login before adding your answer.

Traffic: 1128 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6