Closed filippogambarota closed 2 years ago
Sorry, this hasn't been implemented yet.
Easiest way for now is probably to arrange the data frame so that recycling it doesn't distort the proportions, e.g.:
dat2 <- data.frame(
id = 1:20,
group = rep(c("a", "a", "a", "b"), 5),
y = rnorm(20)
)
Thank you! What about allowing the user to directly pass a custom dataset (maybe created with expand.grid()
) for having more flexibility?
That you can do - e.g.: getData(fm) <- dat
.
Great! thank you!
Is there any way to use the
extend
function with a dataframe where the number of observation in a condition is lower compared to another? I did not found anyalong
orwithin
combination that allow me to create a simulation where the dataset is balanced. For example:How can I managed this? If I want that
ids
will be equally distributed on thegroup
factor?