generate_STb_model_OADA()
generate_STb_model_OADA.Rd
Helper function that creates stan code for OADA type models.
Arguments
- STb_data
a list of formatted data returned from the STbayes_data() function
- model_type
string specifying the model type: "asocial" or "full"
- transmission_func
string specifying transmission function: "standard", "freqdep_f" or "freqdep_k" for frequency dependent complex contagion. Defaults to "standard".
- veff_ID
Parameters for which to estimate varying effects by individuals. Default is no varying effects.
- gq
Boolean to indicate whether the generated quantities block is added (incl. ll for WAIC)
- priors
named list with strings containing the prior for log s or f. defaults to list(log_s = "uniform(-10, 10)", log_f = "normal(0,1)")