Why won't this code run?
library(tidyverse)
df <-
expand.grid(
rho2 = c(.10, .20),
rho3 = c(.05, .15),
r21 = c(.3, .6),
r22 = c(.02, .05),
r23 = c(.05, .20)
) %>%
as.data.frame() %>%
mutate(
power = .80,
alpha = .05,
two.tailed = TRUE,
p = .50,
g3 = 2,
n = 5,
J = 3,
K = 8
) %>%
select(power, alpha, two.tailed, rho2, rho3, p, g3, r21, r22, r23, n, J, K)
pmap(df, PowerUpR::mdes.cra3)