add_theta_partpool | R Documentation |
Adds partial-pooling estimate of theta (based on Bayesian hierarchical model) to data frame.
add_theta_partpool(d, beta = 0.376, random_seed = 200731)
d |
Initialized data frame |
beta |
Parameter for half-normal distribution of alpha (default: 0.376, so that the expected value of alpha is 0.3) |
random_seed |
Seed value for Stan (default: 200731) |
precis_depth |
Depth parameter for rethinking::precis() (default: 1) |
Data frame with values for theta_partpool
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.