Permutation scheme for nested data #39
-
Hello all! I'm having trouble deciding what is the best way to analyse my data. Here is the description of my study: For that, I came with this permutation scheme: perm <- with(data_Q, how(nperm = 999,
plots = Plots(strata = Plot, type = "free"),
within = Within(type = "none"),
blocks = Location)) Does this satisfy my objectives? Also, and I apologize if this is not in the correct place, if I were to use a Linear Mixed Model with this nested data, how would I have to do it to satisfy my objectives? I came up with this: lmer(Y ~ X + (1 | Location) + (0 + X | Location) + (1 | Location:Plot)) Should I exclude the Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Yes, your permutation design is an appropriate way to permute data in a design-based framework. You don't say what model you are fitting so I can't comment on whether the deisgn is appropriate given the model. As for your |
Beta Was this translation helpful? Give feedback.
Yes, your permutation design is an appropriate way to permute data in a design-based framework. You don't say what model you are fitting so I can't comment on whether the deisgn is appropriate given the model.
As for your
lmer()
questions, I don't see why (you haven't explained and this Q&A is not the right place for a LMM discussion) you would want uncorrelated random slopes and intercepts. Also, don't you want(1 | Location / Plot)
, asPlot
is nested inLocation
, though perhapsA / B
evaluates toA:B
, I'd need to check.