Nothing
context("gen_pos")
test_that("generate pos", {
Z <- complete_ra(100)
Y <- rnorm(100)
expect_length( ri2:::generate_pos(Y = Y, assignment_vec = Z, sharp_hypothesis = 0), 200)
Z <- complete_ra(100, num_arms = 3)
Y <- rnorm(100)
ri2:::generate_pos(Y = Y, assignment_vec = Z, sharp_hypothesis = 0)
Z <- complete_ra(100)
Y <- rnorm(100)
ri2:::generate_pos(Y = Y, assignment_vec = Z, sharp_hypothesis = 1)
Z <- complete_ra(100, num_arms = 3)
Y <- rnorm(100)
ri2:::generate_pos(Y = Y, assignment_vec = Z, sharp_hypothesis = 1)
Z <- complete_ra(100, num_arms = 3)
Y <- rnorm(100)
ri2:::generate_pos(Y = Y, assignment_vec = Z, sharp_hypothesis = c(1, 2))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.