Description Usage Arguments Value
View source: R/sample_general_cond_trees.R
Sample trees with same features as original but permuted through the trees
1 2 3 4 5 6 7 | sample_mc_trees(
observed_data,
B = 100,
covariate_names = "x",
multiple_outside_transmissions = FALSE,
replace_vars = FALSE
)
|
observed_data |
data frame with the following columns
|
B |
number of trees to sample |
covariate_names |
string names of covariates |
multiple_outside_transmissions |
logical indicating whether we allow multiple outside transmissions or not. Default is FALSE |
replace_vars |
logical indicating whether we can re sample from the covariate df. Default is FALSE |
data frame with the following columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.