Replies: 1 comment 4 replies
-
You want: how(within = Within(type = "none"),
plots = Plots(strata = factor(variables$PID), type = "free"),
nperm = 9999) changing |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there,
I have longitudinal data with 3 samples per individual ID. I would like to treat each ID as a plot and then permute the whole plots so I am keeping all observations from each individual together when I permute.
I tried using the following code per the Details section in the documentation but I am getting an error message.
perm = how(within = Within(type = "none"), plots = Plots(type=variables$PID), nperm = 9999)
The error I am getting is Error in match.arg(type) : 'arg' must be NULL or a character vector . I believe this is because type is expecting type = c("none","free","series","grid"), however int he details section it says to use type = foo in order to permute whole blocks. Not sure what I am doing wrong?
I am fairly new to R - could someone please assist? It would be greatly appreciated!
Many thanks
Katherine
Beta Was this translation helpful? Give feedback.
All reactions