add_theta_partpool: Add partial-pooling estimate of _theta_ to data frame

View source: R/models.R

add_theta_partpoolR Documentation

Add partial-pooling estimate of theta to data frame

Description

Adds partial-pooling estimate of theta (based on Bayesian hierarchical model) to data frame.

Usage

add_theta_partpool(d, beta = 0.376, random_seed = 200731)

Arguments

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)

Value

Data frame with values for theta_partpool


jmeydam/countcheck documentation built on Aug. 16, 2024, 11:34 a.m.