Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
# Generated by roxygen2: do not edit by hand

export(DID_EC_AIPW)
export(DID_EC_AIPW_bootstrap)
export(DID_EC_IPW)
export(DID_EC_IPW_bootstrap)
export(DID_EC_OR)
export(DID_EC_OR_bootstrap)
export(EC_AIPW_OPT)
export(EC_AIPW_OPT_bootstrap)
export(EC_IPW_OPT)
export(EC_IPW_OPT_bootstrap)
export(run_analysis)
export(run_simulation)
export(setup_analysis_OLE)
Expand Down
2 changes: 1 addition & 1 deletion R/DID_EC_AIPW.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#'
#' @include DID_EC_AIPW_bootstrap.R
#' @return tau and standard deviation
#' @export
#' @noRd
#'
DID_EC_AIPW <- function(data,
outcome_col_name,
Expand Down
2 changes: 1 addition & 1 deletion R/DID_EC_AIPW_bootstrap.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#' @param model_form_mu0_ext Formula string(s) for the external control outcome model.
#'
#' @return tau and standard deviation
#' @export
#' @noRd
#'
#' @examples
#' \dontrun{
Expand Down
2 changes: 1 addition & 1 deletion R/DID_EC_IPW.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#'
#' @include DID_EC_IPW_bootstrap.R
#' @return tau and standard deviation
#' @export
#' @noRd
#'
DID_EC_IPW <- function(data,
outcome_col_name,
Expand Down
2 changes: 1 addition & 1 deletion R/DID_EC_IPW_bootstrap.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#' @param model_form_piA Formula string for the treatment assignment model.
#'
#' @return Named numeric vector of treatment effect estimates.
#' @export
#' @noRd
#'
DID_EC_IPW_bootstrap <- function(data,
indices,
Expand Down
2 changes: 1 addition & 1 deletion R/DID_EC_OR.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#'
#' @include DID_EC_OR_bootstrap.R
#' @return tau and standard deviation
#' @export
#' @noRd
#'
#' @examples
#' \dontrun{
Expand Down
2 changes: 1 addition & 1 deletion R/DID_EC_OR_bootstrap.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#' @param model_form_mu1_rct Formula string(s) for the RCT treatment outcome model.
#'
#' @return tau and standard deviation
#' @export
#' @noRd
#'
#' @examples
#' \dontrun{
Expand Down
2 changes: 1 addition & 1 deletion R/EC_AIPW_OPT.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#'
#' @include EC_AIPW_OPT_bootstrap.R
#' @return a list containing: tau (effect size), sd.tau (standard deviation), wt (weight)
#' @export
#' @noRd
#' @examples
#' \dontrun{
#' res <- EC_AIPW_OPT(
Expand Down
2 changes: 1 addition & 1 deletion R/EC_AIPW_OPT_bootstrap.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#' @param wt Numeric fixed borrowing weight.
#'
#' @return a list containing: tau (effect size), sd.tau (standard deviation), wt (weight)
#' @export
#' @noRd
#' @examples
#' \dontrun{
#' res <- EC_AIPW_OPT(
Expand Down
2 changes: 1 addition & 1 deletion R/EC_IPW_OPT.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#'
#' @include EC_IPW_OPT_bootstrap.R
#' @return a list containing: tau (effect size), sd.tau (standard deviation), wt (weight)
#' @export
#' @noRd
#'
#' @examples
#' \dontrun{
Expand Down
2 changes: 1 addition & 1 deletion R/EC_IPW_OPT_bootstrap.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#' @param wt Numeric fixed borrowing weight.
#'
#' @return a list containing: tau (effect size), sd.tau (standard deviation), wt (weight)
#' @export
#' @noRd
#'
#' @examples
#' \dontrun{
Expand Down
6 changes: 3 additions & 3 deletions R/SCM.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#' @return A list contains: estimated ATE, SE, weight used, SE by Bootstrap
#' and a 95% confidence interval for primary endpoint (only when
#' Bootstrap=TRUE)
#'
#' @noRd
SCM <- function(data,
outcome_col_name,
trial_status_col_name,
Expand Down Expand Up @@ -207,7 +207,7 @@ SCM <- function(data,
#' @param X00 Matrix of external control subjects (attributes by columns).
#' @param long_term_col_name Character vector of long-term outcome column names.
#' @param lambda Numeric penalty parameter.

#' @noRd
subject_SC <- function(subject, X10, X00, long_term_col_name, lambda) {
# subset to only the intersted subject and matching vars
x1 <- X10[-which(row.names(X10) %in% long_term_col_name), subject]
Expand Down Expand Up @@ -239,7 +239,7 @@ subject_SC <- function(subject, X10, X00, long_term_col_name, lambda) {
#' @param lambda.max Numeric. Maximum penalty parameter.
#' @param nlambda Integer. Number of lambda values to evaluate.
#' @param pb A progress bar object or \code{NULL}.

#' @noRd
lambdacv <- function(ec,
long_term_col_name,
lambda.min = 0,
Expand Down
25 changes: 0 additions & 25 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,31 +55,6 @@ reference:
- setup_method_SCM
- setup_bootstrap

- title: Weighting Estimators
desc: IPW and AIPW methods for primary analysis
contents:
- EC_IPW_OPT
- EC_IPW_OPT_bootstrap
- EC_AIPW_OPT
- EC_AIPW_OPT_bootstrap

- title: Difference-in-Differences Estimators
desc: DID methods for OLE analysis
contents:
- DID_EC_IPW
- DID_EC_IPW_bootstrap
- DID_EC_AIPW
- DID_EC_AIPW_bootstrap
- DID_EC_OR
- DID_EC_OR_bootstrap

- title: Synthetic Control Method
desc: SCM estimator and helpers
contents:
- SCM
- subject_SC
- lambdacv

- title: Data Generation
desc: Simulate trial data
contents:
Expand Down
60 changes: 0 additions & 60 deletions man/DID_EC_AIPW.Rd

This file was deleted.

59 changes: 0 additions & 59 deletions man/DID_EC_AIPW_bootstrap.Rd

This file was deleted.

55 changes: 0 additions & 55 deletions man/DID_EC_IPW.Rd

This file was deleted.

43 changes: 0 additions & 43 deletions man/DID_EC_IPW_bootstrap.Rd

This file was deleted.

Loading
Loading