- Effect size computation functions (like
eta_sq()
) now internally call the related functions from the effectsize package. - Remove packages from "Suggest" that have been removed from CRAN.
- Fixed documentation for
chisq_gof()
. - Fixed issue in
anova_stats()
with incorrect effect sizes for certain Anova types (that included an intercept).
sjstats is being re-structured, and many functions are re-implemented in new packages that are part of a new project called easystats.
Therefore, following functions are now deprecated:
cohens_f()
, please useeffectsize::cohens_f()
.std_beta()
, please useeffectsize::standardize_parameters()
.tidy_stan()
, please useparameters::model_parameters()
.scale_weights()
, please useparameters::rescale_weights()
.robust()
, please useparameters::standard_error_robust()
.
- Functions for weighted statistics with prefix
wtd_*()
have been renamed toweighted_*()
. svy_md()
was renamed tosurvey_median()
.mannwhitney()
is an alias formwu()
.means_by_group()
is an alias forgrpmean()
.
sjstats is being re-structured, and many functions are re-implemented in new packages that are part of a new project called easystats. 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.
Therefore, following functions are now deprecated:
p_value()
, please useparameters::p_value()
se()
, please useparameters::standard_error()
- Revise some functions to cope with the forthcoming insight update.
- Minor revisions to meet the changes in the forthcoming update from tidyr.
design_effect()
is an alias fordeff()
.samplesize_mixed()
is an alias forsmpsize_lmm()
.crosstable_statistics()
is an alias forxtab_statistics()
.
svyglm.zip()
to fit zero-inflated Poisson models for survey-designs.
phi()
andcramer()
can now compute confidence intervals.tidy_stan()
removes prior parameters from output.tidy_stan()
now also prints the probability of direction.
- Fix bug with wrong computation in
odds_to_rr()
.
epsilon_sq()
, to compute epsilon-squared effect-size.
sjstats is being re-structured, and many functions are re-implemented in new packages that are part of a new project called easystats. 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.
Therefore, following functions are now deprecated:
link_inverse()
, please useinsight::link_inverse()
model_family()
, please useinsight::model_info()
model_frame()
, please useinsight::get_data()
pred_vars()
, please useinsight::find_predictors()
re_grp_var()
, please useinsight::find_random()
grp_var()
, please useinsight::find_random()
resp_val()
, please useinsight::get_response()
resp_var()
, please useinsight::find_response()
var_names()
, please useinsight::clean_names()
overdisp()
, please useperformance::check_overdispersion()
zero_count()
, please useperformance::check_zeroinflation()
converge_ok()
, please useperformance::check_convergence()
is_singular()
, please useperformance::check_singularity()
reliab_test()
, please useperformance::item_reliability()
split_half()
, please useperformance::item_split_half()
predictive_accurarcy()
, please useperformance::performance_accuracy()
cronb()
, please useperformance::cronbachs_alpha()
difficulty()
, please useperformance::item_difficulty()
mic()
, please useperformance::item_intercor()
pca()
, please useparameters::principal_components()
pca_rotate()
, please useparameters::principal_components()
r2()
, please useperformance::r2()
icc()
, please useperformance::icc()
rmse()
, please useperformance::rmse()
rse()
, please useperformance::rse()
mse()
, please useperformance::mse()
hdi()
, please usebayestestR::hdi()
cred_int()
, please usebayestestR::ci()
rope()
, please usebayestestR::rope()
n_eff()
, please usebayestestR::effective_sample()
equi_test()
, please usebayestestR::equivalence_test()
multicollin()
, please useperformance::check_collinearity()
normality()
, please useperformance::check_normality()
autocorrelation()
, please useperformance::check_autocorrelation()
heteroskedastic()
, please useperformance::check_heteroscedasticity()
outliers()
, please useperformance::check_outliers()
- Anova-stats functions (like
eta_sq()
) get amethod
-argument to define the method for computing confidence intervals from bootstrapping.
- In some situations,
smpsize_lmm()
could result in negative sample-size recommendations. This was fixed, and a warning is now shown indicating that the parameters for the power-calculation should be modified. - Fixed issue with wrong calculated effect size
r
inmwu()
if group-factor contained more than two groups.
- Following models/objects are now supported by model-information functions like
model_family()
,link_inverse()
ormodel_frame()
:MixMod
(package GLMMadaptive), MCMCglmm,mlogit
andgmnl
. - Reduce package dependencies.
cred_int()
, to compute uncertainty intervals of Bayesian models. Mimics the behaviour and style ofhdi()
and is thus a convenient complement to functions likeposterior_interval()
.
equi_test()
now finds better defaults for models with binomial outcome (like logistic regression models).r2()
for mixed models now also should work properly for mixed models fitted with rstanarm.anova_stats()
and alike (e.g.eta_sq()
) now all preserve original term names.model_family()
now returns$is_count = TRUE
, when model is a count-model, and$is_beta = TRUE
for models with beta-family.pred_vars()
checks that return value has only unique values.pred_vars()
gets azi
-argument to return the variables from a model's zero-inflation-formula.
- Fix minor issues in
wtd_sd()
andwtd_mean()
when weight wasNULL
(which usually shoudln't be the case anyway). - Fix potential issue with
deparse()
, cutting off very long formulas in various functions. - Fix encoding issues in help-files.
- Export
dplyr::n()
, to meet forthcoming changes in dplyr 0.8.0.
boot_ci()
gets aci.lvl
-argument.- The
rotation
-argument inpca_rotate()
now supports all rotations frompsych::principal()
. pred_vars()
gets afe.only
-argument to return only fixed effects terms from mixed models, and adisp
-argument to return the variables from a model's dispersion-formula.icc()
for Bayesian models gets aadjusted
-argument, to calculate adjusted and conditional ICC (however, only for Gaussian models).- For
icc()
for non-Gaussian Bayes-models, a message is printed that recommends setting argumentppd
toTRUE
. resp_val()
andresp_var()
now also work for brms-models with additional response information (liketrial()
in formula).resp_var()
gets acombine
-argument, to return either the name of the matrix-column or the original variable names for matrix-columns.model_frame()
now also returns the original variables for matrix-column-variables.model_frame()
now also returns the variable from the dispersion-formula of glmmTMB-models.model_family()
andlink_inverse()
now supports glmmPQL, felm and lm_robust-models.anova_stats()
and alike (omeqa_sq()
etc.) now support gam-models from package gam.p_value()
now supports objects of classsvyolr
.
- Fix issue with
se()
andget_re_var()
for objects returned byicc()
. - Fix issue with
icc()
for Stan-models. var_names()
did not clear terms with log-log transformation, e.g.log(log(y))
.- Fix issue in
model_frame()
for models with splines with only one column.
- Revised help-files for
r2()
andicc()
, also by adding more references.
re_grp_var()
to find group factors of random effects in mixed models.
omega_sq()
andeta_sq()
give more informative messages when using non-supported objects.r2()
andicc()
give more informative warnings and messages.tidy_stan()
supports printing simplex parameters of monotonic effects of brms models.grpmean()
andmwu()
get afile
andencoding
argument, to save the HTML output as file.
model_frame()
now correctly names the offset-columns for terms provided asoffset
-argument (i.e. for models where the offset was not specified inside the formula).- Fixed issue with
weights
-argument ingrpmean()
when variable name was passed as character vector. - Fixed issue with
r2()
for glmmTMB models withar1
random effects structure.
wtd_chisqtest()
to compute a weighted Chi-squared test.wtd_median()
to compute the weighted median of variables.wtd_cor()
to compute weighted correlation coefficients of variables.
mediation()
can now cope with models from different families, e.g. if the moderator or outcome is binary, while the treatment-effect is continuous.model_frame()
,link_inverse()
,pred_vars()
,resp_var()
,resp_val()
,r2()
andmodel_family()
now supportclm2
-objects from package ordinal.anova_stats()
gives a more informative message for non-supported models or ANOVA-options.
- Fixed issue with
model_family()
andlink_inverse()
for models fitted withpscl::hurdle()
orpscl::zeroinfl()
. - Fixed issue with wrong title in
grpmean()
for grouped data frames, when grouping variable was an unlabelled factor. - Fix issue with
model_frame()
for coxph-models with polynomial or spline-terms. - Fix issue with
mediation()
for logical variables.
- Reduce package dependencies.
wtd_ttest()
to compute a weighted t-test.wtd_mwu()
to compute a weighted Mann-Whitney-U or Kruskal-Wallis test.
robust()
was revised, getting more arguments to specify different types of covariance-matrix estimation, and handling these more flexible.- Improved
print()
-method fortidy_stan()
for brmsfit-objects with categorical-families. se()
now also computes standard errors for relative frequencies (proportions) of a vector.r2()
now also computes r-squared values for glmmTMB-models fromgenpois
-families.r2()
gives more precise warnings for non-supported model-families.xtab_statistics()
gets aweights
-argument, to compute measures of association for contingency tables for weighted data.- The
statistics
-argument inxtab_statistics()
gets a"fisher"
-option, to force Fisher's Exact Test to be used. - Improved variance calculation in
icc()
for generalized linear mixed models with Poisson or negative binomial families. icc()
gets anadjusted
-argument, to calculate the adjusted and conditional ICC for mixed models.- To get consistent argument names across functions, argument
weight.by
is now deprecated and renamed intoweights
.
- Fix issues with effect size computation for repeated-measure Anova when using bootstrapping to compute confidence intervals.
grpmean()
now also adjusts then
-columm for weighted data.icc()
,re_var()
andget_re_var()
now correctly compute the random-effect-variances for models with multiple random slopes per random effect term (e.g.,(1 + rs1 + rs2 | grp)
).- Fix issues in
tidy_stan()
,mcse()
,hdi()
andn_eff()
forstan_polr()
-models. - Plotting
equi_test()
did not work for intercept-only models.