Skip to contents

Summarise model composition for a single dataframe of out of sample predictions or out or effect sizes

Usage

summarise_model_composition_data(data)

Arguments

data

A dataframe with the variables dataset, num_fixed_effects, num_random_effects, num_interactions, sample_size

Value

A dataframe in tidy format yielding descriptive summary statistics (mean, sd, min and max) for the key variables described in data, includes the variables subset, dataset, variable, fn, value

Author

Hannah S. Fraser

Elliot Gould

Examples

ManyEcoEvo %>%
  ungroup() %>%
  filter(dataset == "blue tit") %>%
  select(data) %>%
  unnest(data) %>%
  summarise_model_composition_data()
#> # A tibble: 1 × 17
#>   dataset  fixed_mean fixed_sd fixed_min fixed_max random_mean random_sd
#>   <chr>         <dbl>    <dbl>     <dbl>     <dbl>       <dbl>     <dbl>
#> 1 blue tit       5.28     3.02         1        19        3.64      2.37
#> # ℹ 10 more variables: random_min <dbl>, random_max <dbl>,
#> #   interactions_mean <dbl>, interactions_sd <dbl>, interactions_min <dbl>,
#> #   interactions_max <dbl>, n_mean <dbl>, n_sd <dbl>, n_min <dbl>, n_max <dbl>