- Fixed a few typos in
glm.cmpdocumentation. - Fixes for cran checks.
- Exported more functions to NAMESPACE as requested by @yangchino1.
- Patched a bug in
predict.cmpthat failed to handle new data with factors in it.
- Added
autoplotas an alias togg_plot. Credit to Emi Tanaka (@emitanaka) for this suggestion. - Also patched an issue in the Rcpp code to pass cran check for solaris.
- There are also other minor QOL improvements.
- Added
broomtidiermethods support. Specifically added method fortidy(),glance()andaugment(). summary()was rewritten in order to supporttidiermethods.- Also added method for
vcov(),confint(),influence(),hatvalues(),rstandard(),cooks.distance().
- Added Github action support.
- From this version onward,
glm.cmp()no longer usesgetnu(). - General fixes for cran checks.
- Blog post!
- Optimised
rcomp()a bit by precalculating all thedcomp()values. Credit to Guilherme Parreira (@guilhermeparreira) for the issue request. - Documentations are now generated by Roxygen version 7.1.0.
- Fixed an issue that
offsetterm cannot be incorporated properly in the mean model. Credit to Sean Hardison (@seanhardison1) for finding this bug.
- Added the
model.matrix()to extract model matrix from a fitted object. - Documentations are now generated by Roxygen version 7.0.2.
- Updated
glm.cmp()to allow varying dispersion. You can now link the dispersion parameters to some covariates via a log-link. - Most calculations are now performed inside
fit_glm_cmp_const_nu()andfit_glm_cmp_vary_nu(). - Functions such as
print(),summary()are updated to support the updatedglm.cmp(). - Added spelltest as part of the testing procedure.
- Added the
sitophilusdataset to demonstrate the updatedglm.cmp()function.
data(sitophilus)
M.sit <- glm.cmp(formula = ninsect ~ extract, formula_nu = ~extract,
data = sitophilus)
summary(M.sit)- Added travis.CI support.
- New functions
gg_plot(),gg_histcompPIT()andgg_qqcompPIT()are added to provide the ggplots version of the diagnostic plots. - The package now depends on a more recent version of R (
$\geq$ 3.2).
-
Added a
NEWS.mdfile to track changes to the package. -
Added a draft logo to the package.
-
Ribeiro Jr et al. (2018) specification of the CMP model is utilised to provide a better initial estimate for the dispersion parameter. Added
comp_mu_loglik_log_nu_only()to facilitate the optimisation. -
Z(), the normalizing constant function, approximates its true value via (a fixed) truncation. This means the approximation would fail if the mean is large. The followings are implemented as a fix:- A new function
logZ()is created, based on a similar function in thecmpregpackage of Ribeiro Jr, Zeviani & Demétrio (2019), and will supersedeZ()due to its superior numerical stability. - A Chebyshev's inequality type argument is now implemented to have a more flexible upper truncation point.
glm.cmp(),dcomp(),pcomp(),qcomp(),rcomp()and functions that calculate expected values are updated to take advantage of these changes. - A new function
sum(0:500*dcomp(0:500,100,1.2))
sum(0:500*dcomp(0:500,150,0.8))
qcomp(0.6, 150, 1.2)- Added the
fishdataset as a proof of concept thatglm.cmp()can handle some larger count data.
data(fish)
M.fish <- glm.cmp(species~ 1+log(area), data=fish)
max(M.fish$fitted.values)-
comp_lambdas()now has the ability to scale up & downlambdaubso that the correct $\lambda$s can be found even if they are outside the preset boundary.
model.matrix()now retrieves the design matrix of the model properly.glm.cmp()gains a few standard glm arguments:start,contrasts,na.action,subset.
- First major release of the package.