View source: R/posterior_predictive_log_lambda.R
posterior_predictive_log_lambda | R Documentation |
Posterior predictive of Poisson log-normal mixed model
posterior_predictive_log_lambda(obj, k = 1, show_donors = TRUE)
obj |
Object of class |
k |
Draw from HMC chain |
show_donors |
Include donor random effect |
tibble
object
set.seed(1) df = simulate_data(n_cells = 10) str(df) fit = poisson_lognormal(df, protein_names = names(df)[3:ncol(df)], condition = "condition", group = "donor", r_donor = 2, warmup = 200, iter = 325, num_chains = 1) posterior_predictive_log_lambda(fit, k = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.