mpcmp 0.4.0
Bug fixes
-
glm.cmp()now handles rank-deficient design matrices gracefully. - Fixed an error when using the
gammastartargument (#11). - In the varying dispersion case, the coefficient table in the
summary()output contained character columns instead of numeric ones; this has been fixed (#13). - Fixed a documentation issue where the
cottonbollsdataset description was cut off due to an unescaped%.
Improvements
-
autoplot()is now re-exported fromggplot2, and aprint()method was added forcmp_autoplot_listobjects. - Added a
print.logLik.cmp()S3 method. - Updated
ggplot2code to use thelinewidthaesthetic instead of the deprecatedsizefor lines. - Renamed
format.perc()toformat_perc()to avoid clashing with an S3 method defined elsewhere. - Internal helper functions are no longer exported.
- Fixed escaped asterisks in the
AICdocumentation formula. - Updated the package
CITATIONto usebibentry()format and secure URLs. - README refreshed: updated badges and switched installation instructions to
pak.
Testing and infrastructure
- Upgraded to testthat edition 3 and updated test syntax accordingly.
- Added snapshot tests for
summary(),influence(),hatvalues()andcooks.distance(). - Adjusted tolerances in unit tests to account for numerical differences between operating systems.
- Migrated to rhub v2, now run via GitHub Actions.
mpcmp 0.3.9
- Added missing
\valuedocumentation to Rd files for exported functions, methods and datasets that lacked it, per CRAN feedback. -
cmplrtest()now returns an object of class"htest"instead of printing results viacat(); the returned object is displayed viaprint.htest()and its statistic, degrees of freedom and p-value can be extracted directly. -
LRTnu()now returns an object of class"htest"instead of printing results viacat(); the returned object is displayed viaprint.htest()and its statistic, degrees of freedom, p-value and log-likelihoods can be extracted directly. -
plot.cmp()documentation example that was previously commented out is now runnable.
mpcmp 0.3.7
- Exported more functions to NAMESPACE as requested by @yangchino1.
- Patched a bug in
predict.cmpthat failed to handle new data with factors in it.
mpcmp 0.3.6
CRAN release: 2020-10-26
- 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. # mpcmp 0.3.5
- 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().
mpcmp 0.3.3
- 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.
mpcmp 0.3.2
- Fixed an issue that
offsetterm cannot be incorporated properly in the mean model. Credit to Sean Hardison (@seanhardison1) for finding this bug.
mpcmp 0.3.1
- Added the
model.matrix()to extract model matrix from a fitted object. - Documentations are now generated by Roxygen version 7.0.2.
mpcmp 0.3.0
- 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.
mpcmp 0.2.1
- 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 ( 3.2).
mpcmp 0.2.0
- 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
- Added the
fishdataset as a proof of concept thatglm.cmp()can handle some larger count data.
-
comp_lambdas()now has the ability to scale up & downlambdaubso that the correct s can be found even if they are outside the preset boundary.
mpcmp 0.1.4
-
model.matrix()now retrieves the design matrix of the model properly. -
glm.cmp()gains a few standard glm arguments:start,contrasts,na.action,subset.