Closed statisfactions closed 4 years ago
It should be possible to specify multiple fit functions. However:
set.seed(100) chisq_spec = variables(x1 = ~rnorm(n), x2 = ~x1 + rnorm(n, 0, sd = 2), c1 = ~ cut(x1, breaks = b) %>% as.numeric, c2 = ~ cut(x2, breaks = b) %>% as.numeric) %>% meta(n = c(50, 100), b = c(2, 10)) chisq_fit = chisq_spec %>% gen(5) %>% fit(ChiSq = ~chisq.test(.$c1, .$c2), Unknown_Continuous_Correlation = ~cor.test(.$x1, .$x2))
Currently columns ChiSq and Unknown_Continuous_Correlation are really only the ChiSq repeated:
ChiSq
Unknown_Continuous_Correlation
> identical(chisq_gen$ChiSq, chisq_gen$Unknown_Continuous_Correlation) [1] TRUE
It should be possible to specify multiple fit functions. However:
Currently columns
ChiSq
andUnknown_Continuous_Correlation
are really only theChiSq
repeated: