From 7137042096b60dde73c9531a2c4524f0ba62ea78 Mon Sep 17 00:00:00 2001 From: LukaszChrostowski Date: Tue, 12 Nov 2024 21:32:17 +0100 Subject: [PATCH 1/2] changes in news and readme --- NEWS.md | 34 ++++++++++++++++++++-------------- README.Rmd | 2 +- README.md | 2 +- 3 files changed, 22 insertions(+), 16 deletions(-) diff --git a/NEWS.md b/NEWS.md index 868c337..3edad14 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,19 +1,25 @@ # 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 `maxit` argument from `controlSel` function to internally used `nleqslv` function - - bug Fix related to storing `vector` in `model_frame` when predicting `y_hat` in mass imputation `glm` model when X is based in one auxiliary variable only - fix provided converting it to `data.frame` object. -- features - - add information to `summary` about 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 `controlOut` function by switching values for `predictive_match` argument. From now on, the `predictive_match = 1` means $\hat{y}-\hat{y}$ in predictive mean matching imputation and `predictive_match = 2` corresponds to $\hat{y}-y$ matching. - - implement `div` option when variable selection (more in documentation) for doubly robust estimation. - - add more insights to `nonprob` output such as gradient, hessian and jacobian derived from IPW estimation for `mle` and `gee` methods when `IPW` or `DR` model executed. - - add estimated inclusion probabilities and its derivatives for probability and non-probability samples to `nonprob` output when `IPW` or `DR` model executed. - - add `model_frame` matrix data from probability sample used for mass imputation to `nonprob` when `MI` or `DR` model executed. - -## nonprobsvy 0.1.0 +------------------------------------------------------------------------ + +### 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 `maxit` argument from `controlSel` function to internally used `nleqslv` function +- bug Fix related to storing `vector` in `model_frame` when predicting `y_hat` in mass imputation `glm` model when X is based in one auxiliary variable only - fix provided converting it to `data.frame` object. + +### Features +- add information to `summary` about 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 `controlOut` function by switching values for `predictive_match` argument. From now on, the `predictive_match = 1` means $\hat{y}-\hat{y}$ in predictive mean matching imputation and `predictive_match = 2` corresponds to $\hat{y}-y$ matching. +- implement `div` option when variable selection (more in documentation) for doubly robust estimation. +- add more insights to `nonprob` output such as gradient, hessian and jacobian derived from IPW estimation for `mle` and `gee` methods when `IPW` or `DR` model executed. +- add estimated inclusion probabilities and its derivatives for probability and non-probability samples to `nonprob` output when `IPW` or `DR` model executed. +- add `model_frame` matrix data from probability sample used for mass imputation to `nonprob` when `MI` or `DR` model executed. + +### Unit tests +- added unit tests for variable selection models and mi estimation with vector of population totals available + +# nonprobsvy 0.1.0 ------------------------------------------------------------------------ diff --git a/README.Rmd b/README.Rmd index c2f4d59..032b2d4 100644 --- a/README.Rmd +++ b/README.Rmd @@ -469,6 +469,6 @@ summary(result_ipw) ## Funding Work on this package is supported by the National Science Centre, OPUS -22 grant no. 2020/39/B/HS4/00941. +20 grant no. 2020/39/B/HS4/00941. ## References (selected) diff --git a/README.md b/README.md index 79bd182..5f008e1 100644 --- a/README.md +++ b/README.md @@ -631,7 +631,7 @@ summary(result_ipw) ## Funding Work on this package is supported by the National Science Centre, OPUS -22 grant no. 2020/39/B/HS4/00941. +20 grant no. 2020/39/B/HS4/00941. ## References (selected) From 39dd6b8eaf644da0cec7f2acc4a1a0f3589cf106 Mon Sep 17 00:00:00 2001 From: LukaszChrostowski Date: Tue, 12 Nov 2024 21:50:37 +0100 Subject: [PATCH 2/2] small change --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 34b80db..7538ea3 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -14,7 +14,7 @@ Authors@R: comment = c(ORCID = "0000-0002-8281-4301")), person(given = "Piotr", family = "Chlebicki", - role = "ctb", + role = c("aut", "ctb"), email = "piochl@st.amu.edu.pl")) Description: 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) , Kim et al. (2021) , Wu et al. (2023) , Kim et al. (2021) , Kim et al. (2020) . License: MIT + file LICENSE