Created
August 6, 2018 06:39
-
-
Save certifiedwaif/efab1f1444ee453f1bf9c7ad41186851 to your computer and use it in GitHub Desktop.
Working with list columns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parameters_tbl <- parameters_tbl %>% | |
mutate(sampler_mGamma=map(sampler_result, "mGamma"), | |
sampler_vip=map(sampler_mGamma, ~apply(.x, 2, mean)), | |
blma_vip=map(blma_result, "vinclusion_prob"), | |
error=map2_dbl(sampler_vip, blma_vip, ~sum((.x - .y)^2))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment