Skip to content

Commit

Permalink
Prepare for CRAN and SSC submission.
Browse files Browse the repository at this point in the history
  • Loading branch information
MM committed Mar 18, 2021
1 parent 920df0e commit 5c915b9
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 23 deletions.
4 changes: 2 additions & 2 deletions R/ivdesc/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ Title: Profiling Compliers and Non-Compliers for Instrumental Variable Analysis
Version: 1.1.0
Author: Moritz Marbach <[email protected]> [aut, cre]
Maintainer: Moritz Marbach <[email protected]>
Description: Estimating the mean and variance of a covariate for the complier, never-taker and always-taker subpopulation in the context of instrumental variable estimation. This package implements the method described in Marbach and Hangartner (2020) <doi:10.1017/pan.2019.48>.
Description: Estimating the mean and variance of a covariate for the complier, never-taker and always-taker subpopulation in the context of instrumental variable estimation. This package implements the method described in Marbach and Hangartner (2020) <doi:10.1017/pan.2019.48> and Hangartner, Marbach, Henckel, Maathuis, Kelz and Keele (2021) <https://arxiv.org/abs/2103.06328>.
Depends: R (>= 3.4.0)
License: GPL-3
URL: https://github.com/sumtxt/ivdesc/
BugReports: https://github.com/sumtxt/ivdesc/issues
Encoding: UTF-8
LazyData: true
RoxygenNote: 6.1.1
RoxygenNote: 7.1.1
Suggests:
icsw,
haven
Expand Down
1 change: 1 addition & 0 deletions R/ivdesc/NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ importFrom(knitr,kable)
importFrom(purrr,map_df)
importFrom(rsample,analysis)
importFrom(rsample,bootstraps)
importFrom(stats,cov)
importFrom(stats,t.test)
importFrom(stats,var)
4 changes: 2 additions & 2 deletions R/ivdesc/NEWS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# ivdesc 1.1.0

# Version 1.1.0 (2020-07-08)
# Version 1.1.0 (2020-03-18)

* Added analytical SE for complier mean
* Added standard errors based on asymptotic theory

# Version 1.0.0 (2019-10-10)

Expand Down
5 changes: 3 additions & 2 deletions R/ivdesc/R/ivdesc.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#'
#' One-sided noncompliance is supported. The mean for the always-/never-taker subpopulation will only be computed if there are at least two observed units in these subpopulations.
#'
#' If \code{boot=FALSE}, analytical standard errors are calculated for the mean of the whole sample as well as the never-taker and always-taker subpopulation. For the complier subpopulation no analytical estimator for the standard error is available.
#' If \code{boot=FALSE}, standard errors based on asymptotic theory are estimated.
#'
#' The balance test is a t-test allowing for unequal variances.
#'
Expand All @@ -39,8 +39,9 @@
#'
#'
#' @references
#' Moritz Marbach and Dominik Hangartner. (2020). Profiling Compliers and Non-compliers for Instrumental Variable Analysis. \emph{Political Analysis}, 28(3), 435-444.
#' M. Marbach and D. Hangartner. 2020. Profiling Compliers and Non-compliers for Instrumental Variable Analysis. \emph{Political Analysis}, 28(3), 435-444.
#'
#' D. Hangartner, M. Marbach, L. Henckel, M. H. Maathuis, R. R. Kelz, and L. Keele. 2021. Profiling Compliers in Instrumental Variables Designs. Available at arXiv: \href{https://arxiv.org/abs/2103.06328}{https://arxiv.org/abs/2103.06328}.
#'
#' @examples
#'
Expand Down
1 change: 1 addition & 0 deletions R/ivdesc/R/utils.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#' @importFrom stats cov
get_var_mu_co <- function(N,X,Z,D){

C <- cbind(X,Z*(1-D)*X,D*(1-Z)*X,Z*(1-D),D*(1-Z),Z)
Expand Down
18 changes: 14 additions & 4 deletions R/ivdesc/man/ivdesc.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions ivdesc.ado
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*
Version 1.1.0 (July 8, 2020)
Author: Moritz Marbach, moritz.marbach@gess.ethz.ch
Version 1.1.0 (March 18, 2021)
Author: Moritz Marbach, moritz.marbach@tamu.edu
URL: https://github.com/sumtxt/ivdesc
Changelog
1.0.1 : Added coefplot to help file
1.1.0 : Added analytical SE for complier mean
1.1.0 : Added asymptotic SE for complier mean
*/

program ivdesc, rclass
Expand Down
2 changes: 1 addition & 1 deletion ivdesc.pkg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
v 1.1.0
d 'IVDESC': Profiling Compliers and Non-compliers for Instrumental Variable Analysis
d
d Distribution-Date: 20200708
d Distribution-Date: 20210318
d License: GNU General Public License v3.0
d
F ivdesc.sthlp
Expand Down
14 changes: 8 additions & 6 deletions ivdesc.sthlp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{smcl}
{* *! version 1.1.0 July 8, 2020 @ 18:24:26}{...}
{* *! version 1.1.0 March 18, 2021 @ 18:24:26}{...}
{cmd:help ivdesc}
{hline}

Expand All @@ -21,7 +21,7 @@
{marker options}{...}
{title:Options}

{phang}{opt no:boot} report analytical standard errors instead of bootstrap standard errors
{phang}{opt no:boot} report standard errors based on asymptotic theory instead of bootstrap standard errors

{phang}{opt r:eps(#)} perform # bootstrap replications; default is reps(1000)

Expand All @@ -44,7 +44,7 @@ or {it:instrument} are deleted before estimation (listwise deletion).

{phang} One-sided noncompliance is supported. The mean for the always-/never-taker subpopulation will only be computed if there are at least two observed units in these subpopulations.

{phang} If {cmd:noboot}, analytical standard errors are calculated for the mean of the whole sample as well as the never-taker and always-taker subpopulation. For the complier subpopulation no analytical estimator for the standard error is available.
{phang} If {cmd:noboot}, standard errors based on asymptotic theory are estimated.

{phang} The balance test is a t-test allowing for unequal variances.

Expand Down Expand Up @@ -77,9 +77,11 @@ or {it:instrument} are deleted before estimation (listwise deletion).
{title:Reference}
{p 4 8 2}

{pstd}Moritz Marbach and Dominik Hangartner. (2020). Profiling Compliers and Non-compliers for Instrumental Variable Analysis. {it:Political Analysis} 28(3), 435-444. {p_end}
{pstd} M. Marbach and D. Hangartner. 2020. Profiling Compliers and Non-compliers for Instrumental Variable Analysis. {it:Political Analysis} 28(3), 435-444. {p_end}

{pstd} D. Hangartner, M. Marbach, L. Henckel, M. H. Maathuis, R. R. Kelz, and L. Keele. 2021. Profiling Compliers in Instrumental Variables Designs. Available at arXiv: https://arxiv.org/abs/2103.06328. {p_end}

{title:Authors}

Moritz Marbach (Maintainer), moritz.marbach@gess.ethz.ch
ETH Zurich, Switzerland
Moritz Marbach (Maintainer), moritz.marbach@tamu.edu
Texas A&M University, United States
6 changes: 3 additions & 3 deletions ivdesc_calc.ado
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*
Version 1.1.0 (July 8, 2020)
Author: Moritz Marbach, moritz.marbach@gess.ethz.ch
Version 1.1.0 (March 18, 2021)
Author: Moritz Marbach, moritz.marbach@tamu.edu
URL: https://github.com/sumtxt/ivdesc
Changelog
1.0.1 : Added coefplot to help file
1.1.0 : Added analytical SE for complier mean
1.1.0 : Added asymptotic SE for complier mean
*/

program ivdesc_calc, rclass
Expand Down

0 comments on commit 5c915b9

Please sign in to comment.