Description Usage Arguments Value Examples
Impute the root node for an observed cluster
1 | impute_root(data, B = 1, prob_pos = 0.5)
|
data |
data frame with the following columns
|
B |
scaling factor of data imputation. Default is 1. |
prob_pos |
probability of imputed root being positive smear. |
data frame with new_data, same column names but different counts.
1 2 3 | data <- data.frame(n = c(1, 1, 5), n_pos = c(1, 0, 3), freq = c(10, 2, 4))
out <- impute_root(data)
head(out)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.