statisfactions / simpr

Tidyverse-friendly simulations and power analysis
42 stars 6 forks source link

meta lists produces warning #11

Closed statisfactions closed 4 years ago

statisfactions commented 4 years ago

When generating using a list, e.g.

  meta_list_out = variables(x = ~ MASS::mvrnorm(n, rep(0, 2), Sigma = S)) %>%
    meta(n = c(10, 20, 30),
         S = list(independent = diag(2), correlated = diag(2) + 2)) %>%
  gen(1)

This produces the following warning:

Warning message:
Column `S_index` joining factor and character vector, coercing into character vector