dev_beta_binom()
when size < x.log_lik_beta_binom()
to speed up optimization required in dev_beta_binom()
.sens_xxx()
).
ran_skewnorm()
, log_lik_skewnorm()
, res_skewnorm()
, dev_skewnorm()
).rskewnorm()
, dskewnorm()
, pskewnorm()
, qskewnorm()
).log2()<-
, log10()<-
, ilog2()
, and ilog10()
functions.exp2()
and exp10()
functions.Added family of functions for the following distributions
xx_gamma()
xx_student()
xx_beta_binomial()
Added standardized residuals to residual functions for all distributions
pbern()
, qbern()
and rbern()
.log_lik_gamma_pois_zi()
ran_gamma_pois_zi()
dev_gamma_pois_zi()
res_gamma_pois_zi()
Fixed bugs indev_binom()
dev_pois_zi()
log_odds()
and log_odds()<-
.dbern()
, pbern()
, qbern()
, rbern()
.step()
R version of JAGS function.ilog()
.inv_logit()
.inv_odds()
and odds()<-
.odds_ratio2()
and log_odds_ratio2()
.proportional_change()
, proportional_difference()
.ran_pois_zi()
, log_lik_pois_zi()
, res_pois_zi()
and dev_pois_zi()
.pzeros()
to calculate proportion of zeros in a numeric object.res_xx()
functions now return data (actual or simulated) if type = 'data'
.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()
and log_odds_ratio()
to calculate odds, odds ratio and log odds ratio.
Added moments functions xtr_mean()
, xtr_sd()
, variance()
, skewness()
and kurtosis()
.
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 for abs()
.
Added zeros()
function to sum number of 0 values in a numeric (or MCMC object).
threshold = 0
argument to pvalue()
and svalue()
.na_rm = FALSE
argument to lower()
, upper()
, pvalue()
, svalue()
and zscore()
.as_list_unnamed()
for as_list()
.pextreme()
and sextreme()
.chk_indices()
and vld_indices()
to check (validate) if an object is a list of indices ie a vector of one or more positive integer values.par_pattern()
to provide string of regular expression for a parameter name.as_list_unnamed()
generic which by default strips all attributes except names.chk_pars()
and vld_pars()
to permit missing values and duplicates.