View source: R/helper_condition_pr_matrix.R
gen_pr_matrix_cluster | R Documentation |
Generate condition probability matrix given clusters and probabilities
gen_pr_matrix_cluster(clusters, treat_probs, simple)
clusters |
A vector of clusters |
treat_probs |
A vector of treatment (condition 2) probabilities |
simple |
A boolean for whether the assignment is a random sample assignment (TRUE, default) or complete random assignment (FALSE) |
a numeric 2n*2n matrix of marginal and joint condition treatment
probabilities to be passed to the condition_pr_mat
argument of
horvitz_thompson
.
declaration_to_condition_pr_mat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.