Releases: ncn-foreigners/nonprobsvy
Releases · ncn-foreigners/nonprobsvy
v0.2.3
v0.2.2
nonprobsvy version 0.1.1
Version of the package submitted to CRAN
nonprobsvy 0.1.1
Bugfixes
- bug Fix occuring when estimation was based on auxiliary variable, which led to compression of the data from the frame to the vector.
- bug Fix related to not passing
maxitargument fromcontrolSelfunction to internally usednleqslvfunction - bug Fix related to storing
vectorinmodel_framewhen predictingy_hatin mass imputationglmmodel when X is based in one auxiliary variable only - fix provided converting it todata.frameobject.
Features
- add information to
summaryabout quality of estimation basing on difference between estimated and known total values of auxiliary variables - add estimation of exact standard error for k-nearest neighbor estimator.
- add breaking change to
controlOutfunction by switching values forpredictive_matchargument. From now on, thepredictive_match = 1means$\hat{y}-\hat{y}$ in predictive mean matching imputation andpredictive_match = 2corresponds to$\hat{y}-y$ matching. - implement
divoption when variable selection (more in documentation) for doubly robust estimation. - add more insights to
nonproboutput such as gradient, hessian and jacobian derived from IPW estimation formleandgeemethods whenIPWorDRmodel executed. - add estimated inclusion probabilities and its derivatives for probability and non-probability samples to
nonproboutput whenIPWorDRmodel executed. - add
model_framematrix data from probability sample used for mass imputation tononprobwhenMIorDRmodel executed.
Unit tests
- added unit tests for variable selection models and mi estimation with vector of population totals available
nonprobsvy version 0.1.0
Version of the package submitted to CRAN
nonprobsvy 0.1.0
- implemented population mean estimation using doubly robust, inverse probability weighting and mass imputation methods
- implemented inverse probability weighting models with Maximum Likelihood Estimation and Generalized Estimating Equations methods with
logit,complementary log-logandprobitlink functions. - implemented
generalized linear models,nearest neighboursandpredictive mean matchingmethods for Mass Imputation - implemented
y-yhatandyhat-yhatpredictive mean matching - implemented bias correction estimators for doubly-robust approach
- implemented estimation methods when vector of population means/totals is available
- implemented variables selection with
SCAD,LASSOandMCPpenalization equations - implemented analytic and bootstrap (with parallel computation -
doParallelpackage) variance for described estimators - added control parameters for models
- added S3 methods for object of
nonprobclass such asnobsfor samples sizepop.sizefor population size estimationresidualsfor residuals of the inverse probability weighting modelcooks.distancefor identifying influential observations that have a significant impact on the parameter estimateshatvaluesfor measuring the leverage of individual observationslogLikfor computing the log-likelihood of the model,AIC(Akaike Information Criterion) for evaluating the model based on the trade-off between goodness of fit and complexity, helping in model selectionBIC(Bayesian Information Criterion) for a similar purpose as AIC but with a stronger penalty for model complexityconfintfor calculating confidence intervals around parameter estimatesvcovfor obtaining the variance-covariance matrix of the parameter estimatesdeviancefor assessing the goodness of fit of the model
Unit tests
- added unit tests for IPW estimators
- added unit tests for MI estimators
- added unit tests for DR estimators
- added unit tests for variable selection models
- Multicore tests will only be performed after
TEST_NONPROBSVY_MULTICORE_DEVELOPER
is set to "true" via Sys.setenv
Github repository
- added automated R-cmd check
- added CRAN and codecov badges
Documentation
- added documentation for
nonprobfunction - added documenation for
controlfunctions - added documentation for
linkfunctions
Full changelog: v0.1.0
Nonprobsvy
Nonprobsvy Inference With Nonprobability Samples
An R package for statistical inference with non-probability samples when auxiliary information
from external sources such as probability samples or population totals or means is available. Details can be found
in: Wu et al. (2020) doi:10.1080/01621459.2019.1677241, Kim et al. (2021) doi:10.1111/rssa.12696,