Created
October 7, 2019 17:57
-
-
Save monogenea/07858be02ddb723138cc45d4f9b2ad23 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Try Eggs_laid ~ dpois | |
froReduced <- slice(fro, which(!is.na(Eggs_laid))) %>% | |
as.data.frame() | |
# Re-do the variable scaling, otherwise the sampling throws an error | |
froReduced %<>% mutate(female_id = as.integer(factor(Female_ID_coded)), | |
year_id = as.integer(factor(Year)), | |
group_id = as.integer(factor(Group_ID_coded)), | |
Min_age_Z = scale(Min_age), | |
Group_size_Z = scale(Group_size), | |
Mean_eggsize_Z = scale(Mean_eggsize)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment