get_network_term()
get_network_term.RdHelper function to generate network terms for STAN
Arguments
- transmission_func
simple or complex transmission
- is_distribution
did the user supply a posterior distribution for edges
- num_networks
integer of number of networks
- veff_params
vector of varying effects
- s_var
string used to represent s term ("s_prime" or "s_direct")
- net_var
string used to represent network variable "A"
- net_index
string used to index networks "network"
- id_var
string used to index individuals. "id" for tada, need to use "id" and "j" for oada
- veff_type
string or character vector of whether veffs are id, trial or both
- veff_idx
string used to index parameters for varying effects
- trial_var
string used to index trial "trial"
- time_var
string used to index time "time_step"
- high_res
boolean indicating if high res