From 5f0ad3718b06120deaab380ddca585eea54d4101 Mon Sep 17 00:00:00 2001 From: yhoriuchi Date: Sat, 30 Sep 2023 10:39:19 -0400 Subject: [PATCH] Removed default inputs for pj_estimate(), projoint_diff(), and projoint_level(). Since we set these parameters in projoint() and these functions are used only in projoint(), these defaults should be removed. --- R/pj_estimate.R | 40 ++++++++++++++++++++-------------------- R/projoint_diff.R | 30 +++++++++++++++--------------- R/projoint_level.R | 30 +++++++++++++++--------------- man/pj_estimate.Rd | 40 ++++++++++++++++++++-------------------- man/projoint_diff.Rd | 30 +++++++++++++++--------------- man/projoint_level.Rd | 30 +++++++++++++++--------------- 6 files changed, 100 insertions(+), 100 deletions(-) diff --git a/R/pj_estimate.R b/R/pj_estimate.R index acd48f1..2269f6b 100644 --- a/R/pj_estimate.R +++ b/R/pj_estimate.R @@ -34,28 +34,28 @@ pj_estimate <- function( .data, - .structure = "profile_level", - .estimand = "mm", + .structure, + .estimand, .att_choose, .lev_choose, - .att_notchoose = NULL, - .lev_notchoose = NULL, - .att_choose_b = NULL, - .lev_choose_b = NULL, - .att_notchoose_b = NULL, - .lev_notchoose_b = NULL, - .se_method = "analytical", - .irr = NULL, - .remove_ties = TRUE, - .ignore_position = NULL, - .n_sims = NULL, - .n_boot = NULL, - .weights_1 = NULL, - .clusters_1 = NULL, - .se_type_1 = "classical", - .weights_2 = NULL, - .clusters_2 = NULL, - .se_type_2 = "classical" + .att_notchoose, + .lev_notchoose, + .att_choose_b, + .lev_choose_b, + .att_notchoose_b, + .lev_notchoose_b, + .se_method, + .irr, + .remove_ties, + .ignore_position, + .n_sims, + .n_boot, + .weights_1, + .clusters_1, + .se_type_1, + .weights_2, + .clusters_2, + .se_type_2 ){ # check various settings -------------------------------------------------- diff --git a/R/projoint_diff.R b/R/projoint_diff.R index 035ea26..a88878e 100644 --- a/R/projoint_diff.R +++ b/R/projoint_diff.R @@ -30,22 +30,22 @@ projoint_diff <- function( .data, - .qoi = NULL, + .qoi, .by_var, - .structure = "profile_level", - .estimand = "mm", - .se_method = "analytical", - .irr = NULL, - .remove_ties = TRUE, - .ignore_position = NULL, - .n_sims = NULL, - .n_boot = NULL, - .weights_1 = NULL, - .clusters_1 = NULL, - .se_type_1 = "classical", - .weights_2 = NULL, - .clusters_2 = NULL, - .se_type_2 = "classical" + .structure, + .estimand, + .se_method, + .irr, + .remove_ties, + .ignore_position, + .n_sims, + .n_boot, + .weights_1, + .clusters_1, + .se_type_1, + .weights_2, + .clusters_2, + .se_type_2 ){ # bind variables locally to the function ---------------------------------- diff --git a/R/projoint_level.R b/R/projoint_level.R index 73d8a5a..ef855cc 100644 --- a/R/projoint_level.R +++ b/R/projoint_level.R @@ -29,21 +29,21 @@ projoint_level <- function( .data, - .qoi = NULL, - .structure = "profile_level", - .estimand = "mm", - .se_method = "analytical", - .irr = NULL, - .remove_ties = TRUE, - .ignore_position = NULL, - .n_sims = NULL, - .n_boot = NULL, - .weights_1 = NULL, - .clusters_1 = NULL, - .se_type_1 = "classical", - .weights_2 = NULL, - .clusters_2 = NULL, - .se_type_2 = "classical" + .qoi, + .structure, + .estimand, + .se_method, + .irr, + .remove_ties, + .ignore_position, + .n_sims, + .n_boot, + .weights_1, + .clusters_1, + .se_type_1, + .weights_2, + .clusters_2, + .se_type_2 ){ # bind variables locally to the function ---------------------------------- diff --git a/man/pj_estimate.Rd b/man/pj_estimate.Rd index 023fe5f..9587320 100644 --- a/man/pj_estimate.Rd +++ b/man/pj_estimate.Rd @@ -6,28 +6,28 @@ \usage{ pj_estimate( .data, - .structure = "profile_level", - .estimand = "mm", + .structure, + .estimand, .att_choose, .lev_choose, - .att_notchoose = NULL, - .lev_notchoose = NULL, - .att_choose_b = NULL, - .lev_choose_b = NULL, - .att_notchoose_b = NULL, - .lev_notchoose_b = NULL, - .se_method = "analytical", - .irr = NULL, - .remove_ties = TRUE, - .ignore_position = NULL, - .n_sims = NULL, - .n_boot = NULL, - .weights_1 = NULL, - .clusters_1 = NULL, - .se_type_1 = "classical", - .weights_2 = NULL, - .clusters_2 = NULL, - .se_type_2 = "classical" + .att_notchoose, + .lev_notchoose, + .att_choose_b, + .lev_choose_b, + .att_notchoose_b, + .lev_notchoose_b, + .se_method, + .irr, + .remove_ties, + .ignore_position, + .n_sims, + .n_boot, + .weights_1, + .clusters_1, + .se_type_1, + .weights_2, + .clusters_2, + .se_type_2 ) } \arguments{ diff --git a/man/projoint_diff.Rd b/man/projoint_diff.Rd index 8a349fe..704d562 100644 --- a/man/projoint_diff.Rd +++ b/man/projoint_diff.Rd @@ -6,22 +6,22 @@ \usage{ projoint_diff( .data, - .qoi = NULL, + .qoi, .by_var, - .structure = "profile_level", - .estimand = "mm", - .se_method = "analytical", - .irr = NULL, - .remove_ties = TRUE, - .ignore_position = NULL, - .n_sims = NULL, - .n_boot = NULL, - .weights_1 = NULL, - .clusters_1 = NULL, - .se_type_1 = "classical", - .weights_2 = NULL, - .clusters_2 = NULL, - .se_type_2 = "classical" + .structure, + .estimand, + .se_method, + .irr, + .remove_ties, + .ignore_position, + .n_sims, + .n_boot, + .weights_1, + .clusters_1, + .se_type_1, + .weights_2, + .clusters_2, + .se_type_2 ) } \arguments{ diff --git a/man/projoint_level.Rd b/man/projoint_level.Rd index 9b034e8..9eccb6b 100644 --- a/man/projoint_level.Rd +++ b/man/projoint_level.Rd @@ -6,21 +6,21 @@ \usage{ projoint_level( .data, - .qoi = NULL, - .structure = "profile_level", - .estimand = "mm", - .se_method = "analytical", - .irr = NULL, - .remove_ties = TRUE, - .ignore_position = NULL, - .n_sims = NULL, - .n_boot = NULL, - .weights_1 = NULL, - .clusters_1 = NULL, - .se_type_1 = "classical", - .weights_2 = NULL, - .clusters_2 = NULL, - .se_type_2 = "classical" + .qoi, + .structure, + .estimand, + .se_method, + .irr, + .remove_ties, + .ignore_position, + .n_sims, + .n_boot, + .weights_1, + .clusters_1, + .se_type_1, + .weights_2, + .clusters_2, + .se_type_2 ) } \arguments{