-
Notifications
You must be signed in to change notification settings - Fork 3
outdated DeclareDesign code #225
Copy link
Copy link
Open
Description
The current version of the Shiny is using old DeclareDesign code and so shows in "Code output" code that does not work right now. For example in two-arm trials:
N <- 100
assignment_prob <- 0.5
control_mean <- 0
control_sd <- 1
treatment_mean <- 1
treatment_sd <- 1
rho <- 1
population <- declare_population(N = N, u_0 = rnorm(N), u_1 = rnorm(n = N,
mean = rho * u_0, sd = sqrt(1 - rho^2)))
potential_outcomes <- declare_potential_outcomes(Y ~ (1 -
Z) * (u_0 * control_sd + control_mean) + Z * (u_1 * treatment_sd +
treatment_mean))
estimand <- declare_estimand(ATE = mean(Y_Z_1 - Y_Z_0))
assignment <- declare_assignment(prob = assignment_prob)
reveal_Y <- declare_reveal()
estimator <- declare_estimator(Y ~ Z, estimand = estimand)
two_arm_design <- population + potential_outcomes + estimand +
assignment + reveal_Y + estimator
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels