-
Rename skewnorm and skewlnorm parameters and fix definitions (#164).
-
Treat near-zero negative deviances as 0 in dev_res() (#167).
-
Fix raw and standardized residuals in res_skewnorm() (#152, #153) (#161) (#152).
-
Document shape as unbounded for
sens_skewnorm()andsens_skewlnorm()(#158) (#162) (#158).
-
Move the fledge preamble back to the first line of NEWS.md (#150).
-
Fix dev_skewnorm() residual sign to use the mode, not the mean (#144).
- Add
probability_direction()anddirectional_information()(#106). - Add functions to calculate s-values and information from vectors of probabilities:
p2svalue()andp2info()(#122). - Add functions to calculate the Region of Practical Equivalence (ROPE) and credible intervals:
xtr_ci(),xtr_ci_eti(),xtr_ci_hdi(),xtr_rope()(#110). - Add skew-lognormal distribution family (
dskewlnorm(),pskewlnorm(),qskewlnorm(),rskewlnorm(),ran_skewlnorm(),sens_skewlnorm(),quant_skewlnorm(),dev_skewlnorm(),res_skewlnorm(),log_lik_skewlnorm(),prob_skewlnorm()) (#127). - Add
skepticalargument topvalue(),svalue(), anddirectional_information(), defaulting toTRUE(#133). - Advance deprecation of
as_list_unnamed(),pextreme(), andsextreme()from soft-deprecated to warnings (#140).
- Add
log_lik_exp(),log_lik_beta(), andlog_lik_unif()(#93, #94, #95). - Allow one-sided p-values and s-values via the
sideargument ofpvalue()andsvalue(); tightenpvalue()'s sample-size correction to only apply when it would otherwise return exactly 0 (#100, #105). - Add truncation arguments (
tlower,tupper) tolog_lik_*()functions; addprob_*()andquant_*()function families (#119).
- Added a scalar case to
log_lik_beta_binom()to improve speed for scalar inputs. - Add memoization (if memoize package is installed) and data has > 800 rows to gain speed from repeated function calls.
- Use a vectorized optimization to improve speed of optimization required for deviance calculation.
- Remove dependency on MASS package so minimum R version can be brought down to 4.0.0 from 4.3.0.
- Ensure all tests, examples, and vignettes run conditionally for packages listed in suggests.
- Fix behaviour of
dev_beta_binom()when size < x.
- Refactored
log_lik_beta_binom()to speed up optimization required indev_beta_binom(). - Styled all code in package.
- Added sensitivity functions to produce list of new parameters that vary standard deviations (
sens_xxx()). - Added Skew Normal family of functions (
ran_skewnorm(),log_lik_skewnorm(),res_skewnorm(),dev_skewnorm()). - Added Skew Normal distribution functions (
rskewnorm(),dskewnorm(),pskewnorm(),qskewnorm()). - Added
log2()<-,log10()<-,ilog2(), andilog10()functions. - Added
exp2()andexp10()functions.
- Fixed M1mac test
-
Added family of functions for the following distributions
xx_gamma()xx_student()xx_beta_binomial()
-
Added standardized residuals to residual functions for all distributions
- Exported
pbern(),qbern()andrbern().
- Fix for dev testthat
- Fix tests for dev waldo
- Added following zero-inflated gamma Poisson functions
log_lik_gamma_pois_zi()ran_gamma_pois_zi()dev_gamma_pois_zi()res_gamma_pois_zi()Fixed bugs indev_binom()dev_pois_zi()
- Set R >= 3.5
- Added
log_odds()andlog_odds()<-. - Added
dbern(),pbern(),qbern(),rbern().
- Added the following functions
step()R version of JAGS function.ilog().inv_logit().inv_odds()andodds()<-.odds_ratio2()andlog_odds_ratio2().proportional_change(),proportional_difference().ran_pois_zi(),log_lik_pois_zi(),res_pois_zi()anddev_pois_zi().pzeros()to calculate proportion of zeros in a numeric object.
res_xx()functions now return data (actual or simulated) iftype = 'data'.
- Fixed normal and log-normal deviances which were out by a factor of 2 and 1.41 respectively.
- Added the following function families
ran_xx()(random samples)log_lik_xx()(log-likelihood)dev_xx()(deviances)res_xx()(residuals)
for the following distributions
-
_bern, (Bernoulli), -
_binom(binomial) -
_pois(Poisson) -
_norm(normal) -
_lnorm(log-normal) -
_gamma(gamma) -
_gamma_pois(gamma-Poisson) -
Added
odds(),odd_ratio()andlog_odds_ratio()to calculate odds, odds ratio and log odds ratio. -
Added moments functions
xtr_mean(),xtr_sd(),variance(),skewness()andkurtosis(). -
Added
xtr_median()to calculate the median. -
Added
invlogit()to calculate the inverse logistic transform. -
Added
fabs()to calculate the absolute value of x. Used in TMB as replacement forabs(). -
Added
zeros()function to sum number of 0 values in a numeric (or MCMC object).
- Added
threshold = 0argument topvalue()andsvalue(). - Added
na_rm = FALSEargument tolower(),upper(),pvalue(),svalue()andzscore().
- Soft-deprecated
as_list_unnamed()foras_list(). - Soft-deprecated
pextreme()andsextreme().
- Added
chk_indices()andvld_indices()to check (validate) if an object is a list of indices ie a vector of one or more positive integer values. - Added
par_pattern()to provide string of regular expression for a parameter name. - Added
as_list_unnamed()generic which by default strips all attributes except names. - Modified
chk_pars()andvld_pars()to permit missing values and duplicates.
- Initial submission to CRAN.