0
$\begingroup$

Currently I'm trying to analyze data using a mixed model in R.

The data is structured as follows: There are 2 conditions, A and B. For each condition, there are 3 treatments, 1-3. These treatments were done in triplicate, i.e. there are 3 samples per treatment per condition. For each sample, the percentual abundance of a large number of substances were measured (sum of all substances in 1 sample = 100). I am interested in the effect of the treatment in a condition as well as in comparing the treatments between condition for the substances, which means that I would like to know which of the substances have a significantly different concentration between treatments/ conditions.

Thus, I specified my data as a mixed model with lmer:

m <- lmer(logit(abundance)~treatment*condition + (1+treatment*condition|substance), 
          data=d)

Aside from the fact that I am not totally sure whether I specified the random effect structure in the right way, I was wondering how to assess the significance of levels of the random factor. That is, I would like to know which levels are actually significantly different between treatments and/or conditions. Unfortunately I was not able to find anything regarding this. Thus, any help would be greatly appreciated!

$\endgroup$
2
  • 1
    $\begingroup$ This model does not make sense to me, why do you want to treat substance as a random effect? Instead of fitting a logit(abundance)~treatment*condition model for each substance separately? Do you have reasons to believe that all substances will behave in a similar way (e.g. they are related in some way)? $\endgroup$
    – amoeba
    Commented Jun 7, 2017 at 14:30
  • $\begingroup$ Thank you for your fast reply! Yes, the substances in one treatment-condition group were measured in one and the same sample (and the samples are in triplicate). That said, each single substance can still behave differently. How would I integrate the regressions for each different substrate to have a common result? $\endgroup$ Commented Jun 7, 2017 at 16:20

1 Answer 1

0
$\begingroup$

Thank you, I did that. Unfortunately I cannot answer as a comment yet. So, I of course thought about fitting a regression to each substance separately, but am not sure whether that's valid, given that substances stem from the same sample in one condition-treatment (3 samples per condition-treatment). Also, I am not sure how to merge this multitude of regressions into one coherent result. This is why I went with one regression instead, using substance as random effect. Would this also be a valid approach?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.