The aim of easystats is to provide a unifying and consistent framework to tame, discipline and harness the scary R statistics and their pesky models.
The whole easystats
suite can be installed at once with the
following:
install.packages("devtools")
devtools::install_github("easystats/easystats")
library("easystats")
- Testing Contrasts from Bayesian Models with ‘emmeans’ and ‘bayestestR’
- Become a Bayesian master with bayestestR (0.2)
- The ‘see’ package: beautiful figures for easystats
- A perfectly normally distributed sample: another post?
- Compute R2s and other performance indices for all your models!
- How to easily generate a perfectly normal distribution
- Describe and understand Bayesian models and posteriors using bayestestR
- A unified syntax for accessing models’ information
- The end of errors in ANOVA reporting
- Formatted correlation output with effect sizes
Taking all packages from the easystats project into account, we have following package dependencies.
The see package is one of our high-level packages that is responsible for plotting and creating figures. Thus, it increases package dependencies by a substantial amount. Just taking the core packages into consideration, you see that the easystats packages are indeed small and lightweight.
Following conventions apply to the easystats-ecosystem, to ensure that function and argument names as well as element names for return-values follow a consistent pattern across all packages.
Importing other packages
- No full import, only selective import of functions
- Use base-R wherever possible (reduce dependencies)
- Make sure R-version requirements are not too strict
Helper-functions
- Own re-implementation of helper-functions, if it’s not too much
effort (e.g. I typically use own functions to check if a string
starts / ends with a pattern, or if an object (list, data frame)
contains an element with a given name (like
tibble::has_name()
), to reduce dependencies.
Function names
- Lower case, underscore separated if more than one verb
- Common prefix for functions that focus on specific “tasks” or
workflows (e.g. insight,
get_*()
to get data,find_*()
to find information, or performance,performance_*()
to compute measures of model quality,check_*()
to check model assumptions…) - Internal functions (that are not exported, like the previously
mentined helper-functions) should always start with a
.
(e.g.,.do_some_internal_stuff()
).
Argument names
- lower case, underscore separated if more than one verb
Element / Column names (for returned data frames)
- First letter of the column name is capital, unless (6) applies
(example:
Parameter
) - First letter of nouns is capital, unless (6) applies (example:
ROPE_Percentage
,Prior_Scale
) - Using underscore rather than camelCase to separate words (example:
CI_high
) - Multiple words: common/main part first and
adjective/specifier/variational part after (example:
Median_standardized
,ROPE_percentage
) - Abbreviations: all uppercase (example:
ESS
,MCSE
,ROPE
) - Keep conventions for reserved words (example:
p
,pd
,Rhat
) - Adjectives / verbs: all lower case, unless (1) applies (example:
high
orlow
inCI_high
orCI_low
)
%>%
(report)add_plot_attributes
(see)all_models_equal
(insight)all_models_same_class
(insight)area_under_curve
(bayestestR)as.numeric_ifnumeric
(estimate)as.report
(report)auc
(bayestestR)bayesfactor_inclusion
(bayestestR)bayesfactor_models
(bayestestR)bayesfactor_parameters
(bayestestR)bayesfactor_restricted
(bayestestR)bayesfactor_savagedickey
(bayestestR)bayesfactor
(bayestestR)binned_residuals
(performance)check_autocorrelation
(performance)check_collinearity
(performance)check_convergence
(performance)check_distribution
(performance)check_factorstructure
(parameters)check_heteroscedasticity
(performance)check_homogeneity
(performance)check_kmo
(parameters)check_model
(performance)check_normality
(performance)check_outliers
(performance)check_overdispersion
(performance)check_prior
(bayestestR)check_singularity
(performance)check_smoothness
(parameters)check_sphericity
(parameters)check_zeroinflation
(performance)ci_wald
(parameters)ci
(bayestestR)cite_packages
(report)clean_names
(insight)clean_parameters
(insight)cohens_f
(parameters)color_if
(insight)colour_if
(insight)compare_performance
(performance)convert_d_to_odds
(parameters)convert_d_to_r
(parameters)convert_efa_to_cfa
(parameters)convert_odds_to_d
(parameters)convert_odds_to_probs
(parameters)convert_p_to_pd
(bayestestR)convert_pd_to_p
(bayestestR)convert_probs_to_odds
(parameters)convert_r_to_d
(parameters)cor_test
(correlation)correlation
(correlation)cronbachs_alpha
(performance)d_to_odds
(parameters)d_to_r
(parameters)data_grid
(estimate)data_plot
(see)density_at
(bayestestR)describe_distribution
(parameters)describe_posterior
(bayestestR)describe_prior
(bayestestR)diagnostic_posterior
(bayestestR)distribution_beta
(bayestestR)distribution_cauchy
(bayestestR)distribution_chisquared
(bayestestR)distribution_custom
(bayestestR)distribution_gamma
(bayestestR)distribution_mixture_normal
(bayestestR)distribution_normal
(bayestestR)distribution_poisson
(bayestestR)distribution_student
(bayestestR)distribution_uniform
(bayestestR)distribution
(bayestestR)dof_kenward
(parameters)download_model
(insight)efa_to_cfa
(parameters)effective_sample
(bayestestR)epsilon_squared
(parameters)equivalence_test
(bayestestR)estimate_contrasts
(estimate)estimate_density
(bayestestR)estimate_link
(estimate)estimate_means
(estimate)estimate_response
(estimate)estimate_slopes
(estimate)estimate_smooth
(estimate)eta_squared
(parameters)eti
(bayestestR)find_algorithm
(insight)find_formula
(insight)find_interactions
(insight)find_inversions
(estimate)find_parameters
(insight)find_predictors
(insight)find_random_slopes
(insight)find_random
(insight)find_response
(insight)find_statistic
(insight)find_terms
(insight)find_variables
(insight)find_weights
(insight)flat_colors
(see)format_algorithm
(report)format_bf
(parameters)format_ci
(parameters)format_model
(report)format_number
(parameters)format_order
(parameters)format_p
(parameters)format_parameters
(parameters)format_pd
(parameters)format_rope
(parameters)format_standardize
(parameters)format_table
(insight)format_text_collapse
(report)format_text_wrap
(report)format_value_unless_integers
(report)format_value
(insight)generalized_inverse
(correlation)geom_jitter2
(see)geom_point2
(see)geom_pooljitter
(see)geom_poolpoint
(see)geom_violindot
(see)geom_violinhalf
(see)get_correlation_slope_intercept
(insight)get_data
(insight)get_parameters
(insight)get_predictors
(insight)get_priors
(insight)get_random
(insight)get_response
(insight)get_statistic
(insight)get_variance_dispersion
(insight)get_variance_distribution
(insight)get_variance_fixed
(insight)get_variance_intercept
(insight)get_variance_random
(insight)get_variance_residual
(insight)get_variance_slope
(insight)get_variance
(insight)get_weights
(insight)has_intercept
(insight)hdi
(bayestestR)how_to_plot
(see)icc
(performance)interpret_bf
(report)interpret_d
(report)interpret_direction
(report)interpret_effective_sample
(report)interpret_odds
(report)interpret_omega_squared
(report)interpret_p
(report)interpret_r
(report)interpret_r2
(report)interpret_rhat
(report)interpret_rope
(report)interpret
(report)is.int
(report)is.report
(report)is.rules
(report)is_model_supported
(insight)is_model
(insight)is_multivariate
(insight)is_nullmodel
(insight)item_difficulty
(performance)item_intercor
(performance)item_reliability
(performance)item_split_half
(performance)kurtosis
(parameters)link_function
(insight)link_inverse
(insight)looic
(performance)map_estimate
(bayestestR)material_colors
(see)mcse
(bayestestR)metro_colors
(see)model_bootstrap
(parameters)model_info
(insight)model_parameters
(parameters)model_performance
(performance)model_simulate
(parameters)model_values
(report)mse
(performance)n_factors
(parameters)n_obs
(insight)n_parameters
(parameters)normalize
(parameters)odds_to_d
(parameters)odds_to_probs
(parameters)omega_squared
(parameters)p_direction
(bayestestR)p_map
(bayestestR)p_rope
(bayestestR)p_to_pd
(bayestestR)p_value_kenward
(parameters)p_value_wald
(parameters)p_value
(parameters)palette_flat
(see)palette_material
(see)palette_metro
(see)palette_pizza
(see)palette_social
(see)parameters_bootstrap
(parameters)parameters_selection
(parameters)parameters_simulate
(parameters)parameters_standardize
(parameters)parameters_table
(parameters)parameters_type
(parameters)parameters
(parameters)PCA
(parameters)pd_to_p
(bayestestR)pd
(bayestestR)performance_accuracy
(performance)performance_aicc
(performance)performance_hosmer
(performance)performance_logloss
(performance)performance_mse
(performance)performance_pcp
(performance)performance_rmse
(performance)performance_roc
(performance)performance_rse
(performance)performance_score
(performance)performance
(performance)pizza_colors
(see)plots
(see)point_estimate
(bayestestR)principal_components
(parameters)print_color
(insight)print_colour
(insight)print_parameters
(insight)probs_to_odds
(parameters)r_to_d
(parameters)r2_bayes
(performance)r2_coxsnell
(performance)r2_kullback
(performance)r2_loo
(performance)r2_mcfadden
(performance)r2_mckelvey
(performance)r2_nagelkerke
(performance)r2_nakagawa
(performance)r2_tjur
(performance)r2_xu
(performance)r2_zeroinflated
(performance)r2
(performance)remove_triangular
(correlation)rename_if_possible
(report)report
(report)reshape_ci
(bayestestR)reshape_draws
(estimate)reshape_loadings
(parameters)rmse
(performance)rnorm_perfect
(bayestestR)rope_range
(bayestestR)rope
(bayestestR)rules
(report)scale_color_flat_c
(see)scale_color_flat_d
(see)scale_color_flat
(see)scale_color_material_c
(see)scale_color_material_d
(see)scale_color_material
(see)scale_color_metro_c
(see)scale_color_metro_d
(see)scale_color_metro
(see)scale_color_pizza_c
(see)scale_color_pizza_d
(see)scale_color_pizza
(see)scale_color_social_c
(see)scale_color_social_d
(see)scale_color_social
(see)scale_colour_flat_c
(see)scale_colour_flat_d
(see)scale_colour_flat
(see)scale_colour_material_c
(see)scale_colour_material_d
(see)scale_colour_material
(see)scale_colour_metro_c
(see)scale_colour_metro_d
(see)scale_colour_metro
(see)scale_colour_pizza_c
(see)scale_colour_pizza_d
(see)scale_colour_pizza
(see)scale_colour_social_c
(see)scale_colour_social_d
(see)scale_colour_social
(see)scale_fill_flat_c
(see)scale_fill_flat_d
(see)scale_fill_flat
(see)scale_fill_material_c
(see)scale_fill_material_d
(see)scale_fill_material
(see)scale_fill_metro_c
(see)scale_fill_metro_d
(see)scale_fill_metro
(see)scale_fill_pizza_c
(see)scale_fill_pizza_d
(see)scale_fill_pizza
(see)scale_fill_social_c
(see)scale_fill_social_d
(see)scale_fill_social
(see)se
(parameters)sensitivity_to_prior
(bayestestR)show_packages
(report)simulate_prior
(bayestestR)skewness
(parameters)smoothing
(estimate)smoothness
(parameters)social_colors
(see)standard_error
(parameters)standardize_names
(parameters)standardize
(parameters)supported_models
(insight)theme_abyss
(see)theme_blackboard
(see)theme_lucid
(see)theme_modern
(see)to_fulltable
(report)to_fulltext
(report)to_table
(report)to_text
(report)to_values
(report)zero_crossings
(estimate)