get_network_term()
get_network_term.Rd
Helper function to generate network terms for STAN
Usage
get_network_term(
transmission_func = "standard",
is_distribution = FALSE,
separate_s = FALSE,
num_networks = 1,
veff_ID = c(),
s_var = "s_prime",
net_var = "A",
net_index = "network",
id_var = "id",
trial_var = "trial",
time_var = "time_step",
high_res = F
)
Arguments
- transmission_func
simple or complex transmission
- is_distribution
did the user supply a posterior distribution for edges
- separate_s
whether or not s should be constrained to be the same for all networks
- num_networks
integer of number of networks
- veff_ID
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
- trial_var
string used to index trial "trial"
- time_var
string used to index time "time_step"
- high_res
boolean indicating if high res