log_lik_beta_binom() to improvespeed for scalar inputs.dev_beta_binom() when size <x.log_lik_beta_binom() to speed upoptimization required indev_beta_binom().sens_xxx()).ran_skewnorm(),log_lik_skewnorm(),res_skewnorm(),dev_skewnorm()).rskewnorm(),dskewnorm(),pskewnorm(),qskewnorm()).log2()<-,log10()<-,ilog2(), andilog10() functions.exp2() andexp10() functions.Added family of functions for the following distributions
xx_gamma()xx_student()xx_beta_binomial()Added standardized residuals to residual functions for alldistributions
pbern(),qbern() andrbern().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() andlog_odds()<-.dbern(),pbern(),qbern(),rbern().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 numericobject.res_xx() functions now return data (actual orsimulated) iftype = '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)
odds(),odd_ratio() andlog_odds_ratio() to calculate odds, odds ratio and log oddsratio.xtr_mean(),xtr_sd(),variance(),skewness()andkurtosis().xtr_median() to calculate the median.invlogit() to calculate the inverse logistictransform.fabs() to calculate the absolute value of x. Usedin TMB as replacement forabs().zeros() function to sum number of 0 values in anumeric (or MCMC object).threshold = 0 argument topvalue()andsvalue().na_rm = FALSE argument tolower(),upper(),pvalue(),svalue() andzscore().as_list_unnamed() foras_list().pextreme() andsextreme().chk_indices() andvld_indices() tocheck (validate) if an object is a list of indices ie a vector of one ormore positive integer values.par_pattern() to provide string of regularexpression for a parameter name.as_list_unnamed() generic which by default stripsall attributes except names.chk_pars() andvld_pars() topermit missing values and duplicates.