From 3c5988475f48bd6143b16aa5cc32518b5a111640 Mon Sep 17 00:00:00 2001 From: Luke Sonnet Date: Tue, 8 May 2018 10:16:27 -0700 Subject: [PATCH] Fix base url --- R/estimatr_difference_in_means.R | 2 +- R/estimatr_horvitz_thompson.R | 2 +- R/estimatr_iv_robust.R | 2 +- R/estimatr_lm_lin.R | 4 ++-- R/estimatr_lm_robust.R | 4 ++-- README.md | 2 +- docs/index.html | 2 +- docs/reference/declaration_to_condition_pr_mat.html | 3 +-- docs/reference/difference_in_means.html | 5 ++--- docs/reference/horvitz_thompson.html | 2 +- docs/reference/iv_robust.html | 2 +- docs/reference/lm_lin.html | 4 ++-- docs/reference/lm_robust.html | 4 ++-- man/difference_in_means.Rd | 2 +- man/horvitz_thompson.Rd | 2 +- man/iv_robust.Rd | 2 +- man/lm_lin.Rd | 4 ++-- man/lm_robust.Rd | 4 ++-- 18 files changed, 25 insertions(+), 27 deletions(-) diff --git a/R/estimatr_difference_in_means.R b/R/estimatr_difference_in_means.R index 31a6a34b..34d1ddfb 100644 --- a/R/estimatr_difference_in_means.R +++ b/R/estimatr_difference_in_means.R @@ -53,7 +53,7 @@ #' to \code{\link{lm_robust}} with the appropriate robust standard errors #' as weighted difference-in-means estimators are not implemented here. #' More details of the about each of the estimators can be found in the -#' \href{https://estimatr.declaredesign.org/articles/mathematical-notes.html}{mathematical notes}. +#' \href{https://declaredesign.org/R/estimatr/articles/mathematical-notes.html}{mathematical notes}. #' #' @return Returns an object of class \code{"difference_in_means"}. #' diff --git a/R/estimatr_horvitz_thompson.R b/R/estimatr_horvitz_thompson.R index ed5dff12..6dfa08ca 100644 --- a/R/estimatr_horvitz_thompson.R +++ b/R/estimatr_horvitz_thompson.R @@ -67,7 +67,7 @@ #' treatment conditions. #' #' Users interested in more details can see the -#' \href{https://estimatr.declaredesign.org/articles/mathematical-notes.html}{mathematical notes} +#' \href{https://declaredesign.org/R/estimatr/articles/mathematical-notes.html}{mathematical notes} #' for more information and references, or see the references below. #' #' There are three distinct ways that users can specify the design to the diff --git a/R/estimatr_iv_robust.R b/R/estimatr_iv_robust.R index 77292533..43961420 100644 --- a/R/estimatr_iv_robust.R +++ b/R/estimatr_iv_robust.R @@ -48,7 +48,7 @@ #' endogenous regressors, and the residuals used are the difference #' between the outcome and a fit produced by the second-stage coefficients and the #' first-stage (endogenous) regressors. More notes on this can be found at -#' \href{https://estimatr.declaredesign.org/articles/mathematical-notes.html}{the mathematical appendix}. +#' \href{https://declaredesign.org/R/estimatr/articles/mathematical-notes.html}{the mathematical appendix}. #' #' @return An object of class \code{"iv_robust"}. #' diff --git a/R/estimatr_lm_lin.R b/R/estimatr_lm_lin.R index a63830dd..6c861808 100644 --- a/R/estimatr_lm_lin.R +++ b/R/estimatr_lm_lin.R @@ -41,9 +41,9 @@ #' multiple values, a series of dummies for each value is created and each of #' those is interacted with the demeaned covariates. More details can be found #' in the -#' \href{https://estimatr.declaredesign.org/articles/getting-started.html}{Getting Started vignette} +#' \href{https://declaredesign.org/R/estimatr/articles/getting-started.html}{Getting Started vignette} #' and the -#' \href{https://estimatr.declaredesign.org/articles/mathematical-notes.html}{mathematical notes}. +#' \href{https://declaredesign.org/R/estimatr/articles/mathematical-notes.html}{mathematical notes}. #' #' @return An object of class \code{"lm_robust"}. #' diff --git a/R/estimatr_lm_robust.R b/R/estimatr_lm_robust.R index 5fb70d92..06e78d0a 100644 --- a/R/estimatr_lm_robust.R +++ b/R/estimatr_lm_robust.R @@ -33,10 +33,10 @@ #' does, and all auxiliary variables, such as clusters and weights, can be #' passed either as quoted names of columns, as bare column names, or #' as a self-contained vector. Examples of usage can be seen below and in the -#' \href{https://estimatr.declaredesign.org/articles/getting-started.html}{Getting Started vignette}. +#' \href{https://declaredesign.org/R/estimatr/articles/getting-started.html}{Getting Started vignette}. #' #' The mathematical notes in -#' \href{https://estimatr.declaredesign.org/articles/mathematical-notes.html}{this vignette} +#' \href{https://declaredesign.org/R/estimatr/articles/mathematical-notes.html}{this vignette} #' specify the exact estimators used by this function. #' The default variance estimators have been chosen largely in accordance with the #' procedures in diff --git a/README.md b/README.md index 6842aaf1..af532ed1 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Technical papers and textbooks demand complex estimation strategies that are oft **estimatr** provides a small set of commonly-used estimators (methods for estimating quantities of interest like treatment effects or regression parameters), using `C++` for speed, and implemented in `R` with simple, accessible syntax. We include two functions that implement means estimators, `difference_in_means()` and `horvitz_thompson()`. In addition, we include three functions for linear regression estimators, `lm_robust()`, `lm_lin()`, and `iv_robust()`. In each case, scientists can choose an estimator to reflect cluster-randomized, block-randomized, and block-and-cluster-randomized designs. The [Getting Started Guide](articles/getting-started.html) describes each estimator provided by **estimatr** and how it can be used in your analysis. -Fast estimators also enable fast simulation of research designs to learn about their properties (see [DeclareDesign](declaredesign.org/)). +Fast estimators also enable fast simulation of research designs to learn about their properties (see [DeclareDesign](declaredesign.org)). Installing estimatr ------------------- diff --git a/docs/index.html b/docs/index.html index b6c0889d..b1f0d8f1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -113,7 +113,7 @@

Technical papers and textbooks demand complex estimation strategies that are often difficult to implement, even for scientists who are expert coders. The result is slow code copied and pasted from the internet, where the result is taken on faith.

estimatr provides a small set of commonly-used estimators (methods for estimating quantities of interest like treatment effects or regression parameters), using C++ for speed, and implemented in R with simple, accessible syntax. We include two functions that implement means estimators, difference_in_means() and horvitz_thompson(). In addition, we include three functions for linear regression estimators, lm_robust(), lm_lin(), and iv_robust(). In each case, scientists can choose an estimator to reflect cluster-randomized, block-randomized, and block-and-cluster-randomized designs. The Getting Started Guide describes each estimator provided by estimatr and how it can be used in your analysis.

-

Fast estimators also enable fast simulation of research designs to learn about their properties (see DeclareDesign).

+

Fast estimators also enable fast simulation of research designs to learn about their properties (see DeclareDesign).

Installing estimatr

diff --git a/docs/reference/declaration_to_condition_pr_mat.html b/docs/reference/declaration_to_condition_pr_mat.html index 08f958a3..7a913c79 100644 --- a/docs/reference/declaration_to_condition_pr_mat.html +++ b/docs/reference/declaration_to_condition_pr_mat.html @@ -218,8 +218,7 @@

See a

Examples

# Learn condition probability matrix from complete blocked design -library(randomizr) -n <- 100 +library(randomizr)
#> Warning: package ‘randomizr’ was built under R version 3.4.4
n <- 100 dat <- data.frame( blocks = sample(letters[1:10], size = n, replace = TRUE), y = rnorm(n) diff --git a/docs/reference/difference_in_means.html b/docs/reference/difference_in_means.html index 04727e2b..a18e70da 100644 --- a/docs/reference/difference_in_means.html +++ b/docs/reference/difference_in_means.html @@ -247,7 +247,7 @@

Details to lm_robust with the appropriate robust standard errors as weighted difference-in-means estimators are not implemented here. More details of the about each of the estimators can be found in the -mathematical notes.

+mathematical notes.

References

@@ -261,8 +261,7 @@

See a

Examples

-library(fabricatr) -library(randomizr) +library(fabricatr)
#> Warning: package ‘fabricatr’ was built under R version 3.4.4
library(randomizr) # Get appropriate standard errors for unit-randomized designs # ---------- diff --git a/docs/reference/horvitz_thompson.html b/docs/reference/horvitz_thompson.html index 2c37b0a0..1128d165 100644 --- a/docs/reference/horvitz_thompson.html +++ b/docs/reference/horvitz_thompson.html @@ -275,7 +275,7 @@

Details different). The estimator we provide here considers the case with two treatment conditions.

Users interested in more details can see the -mathematical notes +mathematical notes for more information and references, or see the references below.

There are three distinct ways that users can specify the design to the function. The preferred way is to use diff --git a/docs/reference/iv_robust.html b/docs/reference/iv_robust.html index 3a3c0879..337e9c7c 100644 --- a/docs/reference/iv_robust.html +++ b/docs/reference/iv_robust.html @@ -246,7 +246,7 @@

Details endogenous regressors, and the residuals used are the difference between the outcome and a fit produced by the second-stage coefficients and the first-stage (endogenous) regressors. More notes on this can be found at -the mathematical appendix.

+the mathematical appendix.

Examples

diff --git a/docs/reference/lm_lin.html b/docs/reference/lm_lin.html index d9fdc9e5..29d58950 100644 --- a/docs/reference/lm_lin.html +++ b/docs/reference/lm_lin.html @@ -250,9 +250,9 @@

Details multiple values, a series of dummies for each value is created and each of those is interacted with the demeaned covariates. More details can be found in the -Getting Started vignette +Getting Started vignette and the -mathematical notes.

+mathematical notes.

See also

diff --git a/docs/reference/lm_robust.html b/docs/reference/lm_robust.html index 59243c6b..9df65f3f 100644 --- a/docs/reference/lm_robust.html +++ b/docs/reference/lm_robust.html @@ -242,9 +242,9 @@

Details does, and all auxiliary variables, such as clusters and weights, can be passed either as quoted names of columns, as bare column names, or as a self-contained vector. Examples of usage can be seen below and in the -Getting Started vignette.

+Getting Started vignette.

The mathematical notes in -this vignette +this vignette specify the exact estimators used by this function. The default variance estimators have been chosen largely in accordance with the procedures in diff --git a/man/difference_in_means.Rd b/man/difference_in_means.Rd index c8fe049f..fbfa3451 100644 --- a/man/difference_in_means.Rd +++ b/man/difference_in_means.Rd @@ -97,7 +97,7 @@ Importantly, if the user specifies weights, the estimation is handed off to \code{\link{lm_robust}} with the appropriate robust standard errors as weighted difference-in-means estimators are not implemented here. More details of the about each of the estimators can be found in the -\href{http://estimatr.declaredesign.org/articles/mathematical-notes.html}{mathematical notes}. +\href{https://declaredesign.org/R/estimatr/articles/mathematical-notes.html}{mathematical notes}. } \examples{ diff --git a/man/horvitz_thompson.Rd b/man/horvitz_thompson.Rd index 31611af4..c6e4adba 100644 --- a/man/horvitz_thompson.Rd +++ b/man/horvitz_thompson.Rd @@ -117,7 +117,7 @@ different). The estimator we provide here considers the case with two treatment conditions. Users interested in more details can see the -\href{http://estimatr.declaredesign.org/articles/mathematical-notes.html}{mathematical notes} +\href{https://declaredesign.org/R/estimatr/articles/mathematical-notes.html}{mathematical notes} for more information and references, or see the references below. There are three distinct ways that users can specify the design to the diff --git a/man/iv_robust.Rd b/man/iv_robust.Rd index cb8cb02e..8675d1e5 100644 --- a/man/iv_robust.Rd +++ b/man/iv_robust.Rd @@ -97,7 +97,7 @@ design matrix used are the second-stage regressors, which includes the estimated endogenous regressors, and the residuals used are the difference between the outcome and a fit produced by the second-stage coefficients and the first-stage (endogenous) regressors. More notes on this can be found at -\href{http://estimatr.declaredesign.org/articles/mathematical-notes.html}{the mathematical appendix}. +\href{https://declaredesign.org/R/estimatr/articles/mathematical-notes.html}{the mathematical appendix}. } \examples{ library(fabricatr) diff --git a/man/lm_lin.Rd b/man/lm_lin.Rd index ffce88d0..59a6e0e1 100644 --- a/man/lm_lin.Rd +++ b/man/lm_lin.Rd @@ -99,9 +99,9 @@ its mean, and interacting them with the treatment. If the treatment has multiple values, a series of dummies for each value is created and each of those is interacted with the demeaned covariates. More details can be found in the -\href{http://estimatr.declaredesign.org/articles/getting-started.html}{Getting Started vignette} +\href{https://declaredesign.org/R/estimatr/articles/getting-started.html}{Getting Started vignette} and the -\href{http://estimatr.declaredesign.org/articles/mathematical-notes.html}{mathematical notes}. +\href{https://declaredesign.org/R/estimatr/articles/mathematical-notes.html}{mathematical notes}. } \examples{ library(fabricatr) diff --git a/man/lm_robust.Rd b/man/lm_robust.Rd index a266d43d..2b880ef3 100644 --- a/man/lm_robust.Rd +++ b/man/lm_robust.Rd @@ -94,10 +94,10 @@ errors. It takes a formula and data much in the same was as \code{\link{lm}} does, and all auxiliary variables, such as clusters and weights, can be passed either as quoted names of columns, as bare column names, or as a self-contained vector. Examples of usage can be seen below and in the -\href{http://estimatr.declaredesign.org/articles/getting-started.html}{Getting Started vignette}. +\href{https://declaredesign.org/R/estimatr/articles/getting-started.html}{Getting Started vignette}. The mathematical notes in -\href{http://estimatr.declaredesign.org/articles/mathematical-notes.html}{this vignette} +\href{https://declaredesign.org/R/estimatr/articles/mathematical-notes.html}{this vignette} specify the exact estimators used by this function. The default variance estimators have been chosen largely in accordance with the procedures in