Skip to content

Commit

Permalink
updating documentation, trying to debug params passed
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroliman committed Feb 23, 2023
1 parent ad52638 commit b2dd613
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
9 changes: 6 additions & 3 deletions R/optic-simulation-helper.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,13 @@
#'
optic_simulation <- function(x, models, iters,
unit_var, time_var,
effect_magnitude, n_units,
effect_magnitude,
n_units,
effect_direction,
policy_speed,
n_implementation_periods,
prior_control,
treat_var,
n_implementation_periods,
rhos, years_apart, ordered,
method,
method_sample, method_model, method_results,
Expand Down Expand Up @@ -178,7 +179,7 @@ optic_simulation <- function(x, models, iters,
stopifnot(is.numeric(n_units))
stopifnot(all(effect_direction %in% c("null", "neg", "pos")))
stopifnot(all(policy_speed %in% c("instant", "slow")))
#stopifnot(is.numeric(n_implementation_periods))
stopifnot(is.numeric(n_implementation_periods))

# Crete list with mandatory parameters
params <- list(unit_var = unit_var,
Expand Down Expand Up @@ -210,6 +211,8 @@ optic_simulation <- function(x, models, iters,
params$treat_var <- treat_var
}

dput(params)

###
# create a OpticSim object
# It is difficult to
Expand Down
2 changes: 1 addition & 1 deletion dev/dev_test_concurrent.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#devtools::document()
devtools::document()
#devtools::build_manual()
devtools::load_all()

Expand Down
6 changes: 6 additions & 0 deletions man/optic_simulation.Rd

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

0 comments on commit b2dd613

Please sign in to comment.